-
-
Save AhmedBHameed/2197bec46e1232f29d4c399a64bfe08f to your computer and use it in GitHub Desktop.
Test CORS with cURL
This file contains hidden or 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://EXAMPLE.COM" \ | |
-H 'Access-Control-Request-Method: GET' \ | |
http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment