Last active
February 7, 2020 09:32
-
-
Save stefanocarli/48e80e464c78b82cfaa809eaefa55216 to your computer and use it in GitHub Desktop.
Test CORS with cURL
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://WWW.EXAMPLE.COM" \ | |
| -H 'Access-Control-Request-Method: GET' \ | |
| https://WWW.EXAMPLE.COM/SUBFOLDER 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