disable header check when not run in a browser

I needed to set the Cookie header for a request and it was being rejected due to the policy which should only take affect in a web browser which normally manages the protected headers. I put in a check which will disable the header checks if the code is run via Node.js.

I checked and when the Cloud Code function runs on Parse it does allow for the cookie header to be set so this makes this code more compatible with Parse.