Created
November 7, 2021 09:40
-
-
Save scott82anderson/d5c2002f6810a2478431d36aeb5f7597 to your computer and use it in GitHub Desktop.
Check CORS (Access Control Allow Origin) headers from the command line
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 -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