Would help if actually included the cors header

This commit is contained in:
Marcus Noble 2016-04-16 08:46:09 +01:00
parent 47eeba08be
commit 086dfad870

View File

@ -31,6 +31,8 @@ http.createServer((req, response) => {
config.body = req;
}
response.setHeader('Access-Control-Allow-Origin', '*');
request(config)
.on('error', () => response.end())
.pipe(response, {end:true});