9951 explained code solutions for 126 technologies


curlHow to set Access-Control-Request-Headers header


curl https://example.org -X OPTIONS -H "Access-Control-Request-Headers: content-type"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

content-type

sets Access-Control-Request-Headers value to content-type