add access-control-allow-origin in javascript code example Example: access-control-allow-origin Access-Control-Allow-Origin: *