Skip to content

Instantly share code, notes, and snippets.

@AlexR1712
Forked from exAspArk/curl.sh
Created October 24, 2020 16:32
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 AlexR1712/be9616f69a73641272cf99ac29c6bc01 to your computer and use it in GitHub Desktop.
Save AlexR1712/be9616f69a73641272cf99ac29c6bc01 to your computer and use it in GitHub Desktop.
Test CORS with cURL
curl -I -X OPTIONS \
-H "Origin: http://EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
http://EXAMPLE.COM/SOMETHING 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