Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save scott82anderson/d5c2002f6810a2478431d36aeb5f7597 to your computer and use it in GitHub Desktop.

Select an option

Save scott82anderson/d5c2002f6810a2478431d36aeb5f7597 to your computer and use it in GitHub Desktop.
Check CORS (Access Control Allow Origin) headers from the command line
curl -I -X OPTIONS \
-H "Origin: https://requesting-site.com" \
-H 'Access-Control-Request-Method: GET' \
https://responding-site.com 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