Created
May 5, 2018 23:47
-
-
Save swarupdonepudi/04ac28a4b6102515ea4e531c51cf1f19 to your computer and use it in GitHub Desktop.
Checking for CORS using 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
curl -H "Origin: https://<origin-host-utl>" \ | |
-H "Access-Control-Request-Method: GET" \ | |
-H "Access-Control-Request-Headers: X-Requested-With" \ | |
-X OPTIONS --verbose \ | |
https://<target-url> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment