Skip to content

Instantly share code, notes, and snippets.

@nietzscheson
Last active June 22, 2021 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nietzscheson/977d1c49b9c251490a93f32648c08404 to your computer and use it in GitHub Desktop.
Save nietzscheson/977d1c49b9c251490a93f32648c08404 to your computer and use it in GitHub Desktop.
Testing CORS OPTIONS request with cURL
curl \
--verbose --request OPTIONS http://localhost:8000/graphql/ \
--header 'Origin: http://localhost:3000' \
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
--header 'Access-Control-Request-Method: POST'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment