Created
April 24, 2017 17:48
-
-
Save emersonsoares/c0da2aeafd5218908b806debec3a2907 to your computer and use it in GitHub Desktop.
Debug CORS via 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 -H "Origin: http://example.com" \ [14:30:07] | |
-H "Access-Control-Request-Method: GET" \ | |
-H "Access-Control-Request-Headers: X-Requested-With" \ | |
-X OPTIONS --verbose \ | |
"http://localhost/api" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment