Last Updated: February 25, 2016
· otobrglez

Fixing CORS errors (Access-Control-Allow-Origin)

There comes a time in developers life when he gets sh* load of:

XMLHttpRequest cannot load Origin is not allowed by Access-Control-Allow-Origin.

Then you can do

./Applications/Google\ Chrome --disable-web-security

Or you can add header to your responses with

Access-Control-Allow-Origin: *

And then in your time you can also read...