Skip to content

Instantly share code, notes, and snippets.

@brotich
Forked from exAspArk/curl.sh
Last active April 9, 2019 14:56
Show Gist options
  • Save brotich/0d8584a22afb7f554b0ab8f8b5b15323 to your computer and use it in GitHub Desktop.
Save brotich/0d8584a22afb7f554b0ab8f8b5b15323 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 -i 'Access-Control-Allow-Origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment