Skip to content

Instantly share code, notes, and snippets.

@MCheli
Forked from madis/gist:4650014
Last active September 25, 2017 06:13
Show Gist options
  • Save MCheli/d0e90e96b8afccfa55613f2e6b6274c7 to your computer and use it in GitHub Desktop.
Save MCheli/d0e90e96b8afccfa55613f2e6b6274c7 to your computer and use it in GitHub Desktop.
Testing CORS OPTIONS request with curl
curl \
--verbose \
--request OPTIONS \
https://academic-dev1.cloud.thingworx.com/Thingworx/Things/testingCORS/Properties/test \
--header 'Origin: http://localhost:3000' \
--header 'appKey: 29506e99-bca6-4522-b60e-55bd891716f7' \
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \
--header 'Access-Control-Request-Method: GET'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment