Skip to content

Instantly share code, notes, and snippets.

@ngtrieuvi92
Forked from exAspArk/curl.sh
Created December 13, 2019 06:47
Show Gist options
  • Save ngtrieuvi92/a87aa8959a493d90c87bdca7cbbb3e77 to your computer and use it in GitHub Desktop.
Save ngtrieuvi92/a87aa8959a493d90c87bdca7cbbb3e77 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