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
1 changed files with 3 additions and 1 deletions

View File

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