cross-origin ‘Authorization’-header with jquery.ajax()
This is an example of making a CORS request. If you have access to the server (which I assume you do since this is a request to localhost), you will need to add CORS-specific response headers. The simplest thing to do is to add the following response headers: Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, PUT, DELETE … Read more