Skip to content

Instantly share code, notes, and snippets.

@dteoh
Created September 26, 2019 23:56
Show Gist options
  • Save dteoh/315f41b9d13effa01f314424d6cff9c5 to your computer and use it in GitHub Desktop.
Save dteoh/315f41b9d13effa01f314424d6cff9c5 to your computer and use it in GitHub Desktop.
Check CORS headers with `curl`
$ curl -X OPTIONS -H “Origin: REQUESTER-DOMAIN.com” -H “Access-Control-Request-Method: GET“ -s -v <TARGET URL HERE> 1> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment