Skip to content

Instantly share code, notes, and snippets.

@swarupdonepudi
Created May 5, 2018 23:47
Show Gist options
  • Save swarupdonepudi/04ac28a4b6102515ea4e531c51cf1f19 to your computer and use it in GitHub Desktop.
Save swarupdonepudi/04ac28a4b6102515ea4e531c51cf1f19 to your computer and use it in GitHub Desktop.
Checking for CORS using curl
curl -H "Origin: https://<origin-host-utl>" \
-H "Access-Control-Request-Method: GET" \
-H "Access-Control-Request-Headers: X-Requested-With" \
-X OPTIONS --verbose \
https://<target-url>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment