-
-
Save stafot/bb98333db7d644bec306d2b1d70b7e7c to your computer and use it in GitHub Desktop.
Test CORS headers with curl
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
#!/bin/bash | |
curl -X GET -H "Origin: http://example.com" --verbose http://foo.com/bar | |
curl -X POST -H "Origin: http://example.com" --verbose http://foo.com/bar | |
curl -X PUT -H "Origin: http://example.com" --verbose http://foo.com/bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment