Skip to content

Instantly share code, notes, and snippets.

@ppartarr
Created August 24, 2018 16:08
Show Gist options
  • Save ppartarr/ffd2baba9e4c1d0a4438ea611cf9627e to your computer and use it in GitHub Desktop.
Save ppartarr/ffd2baba9e4c1d0a4438ea611cf9627e to your computer and use it in GitHub Desktop.
Does server handle CORS preflight OPTIONS request correclty?
# This should response with a 200 OK
curl -X OPTIONS -H "Origin: http://localhost:PORT_NUMBER" -H "Access-Control-Request-Method: GET" --verbose URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment