Created
March 23, 2020 11:13
-
-
Save itgelo/f036e2bc373f9a22b78cce0760ec249c to your computer and use it in GitHub Desktop.
Test CORS with cURL
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 -I -X OPTIONS \ | |
-H "Origin: http://localhost" \ | |
-H "Access-Control-Request-Method: POST" \ | |
"http://domain.com" 2>&1 | grep -i "Access-Control-Allow-Origin\|Access-Control-Allow-Methods" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment