how to set access-control-allow-origin header in javascript code example Example: access-control-allow-origin Access-Control-Allow-Origin: *