Closed dankantor closed 8 years ago
You can now handle CORS by setting the proper headers in the response object -
res.set('Access-Control-Allow-Origin', '*');
res.set('Access-Control-Allow-Headers', 'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token');
res.set('Access-Control-Allow-Methods', 'GET,POST,OPTIONS');
res.set('Access-Control-Max-Age', 300);
There should be a way to enable CORS on the PI Gateway side.