Skip to content

Instantly share code, notes, and snippets.

View scott82anderson's full-sized avatar

Scott Anderson scott82anderson

View GitHub Profile
@scott82anderson
scott82anderson / gist:d5c2002f6810a2478431d36aeb5f7597
Created November 7, 2021 09:40
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'
### Keybase proof
I hereby claim:
* I am scott82anderson on github.
* I am scott82anderson (https://keybase.io/scott82anderson) on keybase.
* I have a public key ASCPuClOBEPX26BJu6n20MFnw2TL4zARcbecA0f2KkOgxgo
To claim this, I am signing this object: