Created
November 14, 2022 09:27
-
-
Save vyspiansky/ce7cacaf3b8dabf4472c9f4b046e6b68 to your computer and use it in GitHub Desktop.
Bash: check preflight request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v -i -X OPTIONS -H "Origin: <WEBSIDE_URL>" \ | |
-H 'Access-Control-Request-Method: POST' \ | |
-H 'Access-Control-Request-Headers: Accept, Content-Type, Origin, Referer, User-Agent, X-YOUR-CUSTOM-HEADER' \ | |
"<XHR_URL>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment