CORS – How do ‘preflight’ an httprequest?
During the preflight request, you should see the following two headers: Access-Control-Request-Method and Access-Control-Request-Headers. These request headers are asking the server for permissions to make the actual request. Your preflight response needs to acknowledge these headers in order for the actual request to work. For example, suppose the browser makes a request with the following … Read more