Open In App

HTTP headers | Access-Control-Request-Method

Last Updated : 10 May, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
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

Next Article

Similar Reads