Skip to content

Instantly share code, notes, and snippets.

View MCheli's full-sized avatar

Mark Cheli MCheli

View GitHub Profile
@MCheli
MCheli / gist:d0e90e96b8afccfa55613f2e6b6274c7
Last active September 25, 2017 06:13 — forked from madis/gist:4650014
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'
@MCheli
MCheli / 0_reuse_code.js
Created September 19, 2017 23:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console