Skip to content

Instantly share code, notes, and snippets.

@stefanocarli
Last active February 7, 2020 09:32
Show Gist options
  • Save stefanocarli/48e80e464c78b82cfaa809eaefa55216 to your computer and use it in GitHub Desktop.
Save stefanocarli/48e80e464c78b82cfaa809eaefa55216 to your computer and use it in GitHub Desktop.
Test CORS with cURL
curl -I -X OPTIONS \
-H "Origin: https://WWW.EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
https://WWW.EXAMPLE.COM/SUBFOLDER 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