Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VojtechVitek/452b7f692197e765c6fc323366bd040a to your computer and use it in GitHub Desktop.
Save VojtechVitek/452b7f692197e765c6fc323366bd040a to your computer and use it in GitHub Desktop.
Testing CORS OPTIONS request with curl
curl -v -X OPTIONS -H 'Access-Control-Request-Method: GET' -H 'Access-Control-Request-Headers: Origin, Accept, Content-Type' -H 'Origin: https://origin-host.example.com' https://target-host.example.com/ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment