What CORS is
A browser rule, not a server one. When JavaScript on one origin asks for a resource on another, the browser sends the request but refuses to hand the response to your code unless the server says, in its response headers, that the requesting origin may read it. Cross-Origin Resource Sharing is the set of headers used to say that.

