Skip to content

Instantly share code, notes, and snippets.

@emersonsoares
Created April 24, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emersonsoares/c0da2aeafd5218908b806debec3a2907 to your computer and use it in GitHub Desktop.
Save emersonsoares/c0da2aeafd5218908b806debec3a2907 to your computer and use it in GitHub Desktop.
Debug CORS via CURL
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