Created
August 3, 2013 00:19
-
-
Save shawnbot/6144454 to your computer and use it in GitHub Desktop.
Test pre-flight CORS headers
This file contains 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
hostname=http://example.com | |
url=http://cors-enabled-server.com/path/to/data.json | |
curl -H "Origin: ${hostname}" -X OPTIONS -H "Access-Control-Request-Method: GET" -I "${url}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment