9951 explained code solutions for 126 technologies


curlHow to set Access-Control-Request-Method header


curl https://example.org -X OPTIONS -H "Access-Control-Request-Method: POST"ctrl + c
curl

base curl command

https://example.org

sample URL to send OPTIONS request to

-X OPTIONS

will send OPTIONS request

-H

set specified header

POST

sets Access-Control-Request-Method value to POST