Skip to content

Instantly share code, notes, and snippets.

@adibdz
Forked from exAspArk/curl.sh
Created December 26, 2019 04:00
Show Gist options
  • Save adibdz/97c72a41d251f171dfddc63e30140269 to your computer and use it in GitHub Desktop.
Save adibdz/97c72a41d251f171dfddc63e30140269 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'
@adibdz
Copy link
Author

adibdz commented Dec 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment