November 2015
Intermediate to advanced
152 pages
2h 46m
English
Sometimes, browsers send a prerequest before sending an actual request in order to verify CORS. Such prerequests will use the HTTP OPTIONS method and the request will have the following access control request headers:
The HTTP action method name that is applied on the actual request is supplied to Access-Control-Request-Method and the list of comma separated headers that is applied on the actual request is supplied to Access-Control-Request-Headers. The following sample request is one such prerequest:
OPTIONS http://localhost:53858/api/contacts HTTP/1.1 Host: localhost:53858 Accept: */* Origin: http://localhost:53870 Access-Control-Request-Method: PUT ...
Read now
Unlock full access