HTTP headers | Access-Control-Request-Method

The HTTP headers Access-Control-Request-Method is a request type header which has been used to inform the server that which HTTP method will be used when the actual request is made.

Syntax:

Access-Control-Request-Method: <method>

Directives: This header accept a single directive which is mentioned above and described below:

  • <method>: This directive holds the method which will be used when the actual request is made.

Note: Multiple methods can be used when the actual request will be made.

Example:

  • Access-Control-Request-Method: POST
  • Access-Control-Request-Method: GET, PUT

To check this Access-Control-Request-Method in action go to Inspect Element -> Network check the request header for Access-Control-Request-Method like below, Access-Control-Request-Method is highlighted you can see.

Supported Browsers: The browsers compatible with HTTP headers Access-Control-Request-Method are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.