From 086dfad870030159bdc6fd2a9116a2e78467dbcb Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 16 Apr 2016 08:46:09 +0100 Subject: [PATCH] Would help if actually included the cors header --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e3cb103..e9aef92 100644 --- a/index.js +++ b/index.js @@ -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); \ No newline at end of file +}).listen(PORT);