Would help if actually included the cors header
This commit is contained in:
parent
47eeba08be
commit
086dfad870
4
index.js
4
index.js
@ -31,8 +31,10 @@ http.createServer((req, response) => {
|
|||||||
config.body = req;
|
config.body = req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
response.setHeader('Access-Control-Allow-Origin', '*');
|
||||||
|
|
||||||
request(config)
|
request(config)
|
||||||
.on('error', () => response.end())
|
.on('error', () => response.end())
|
||||||
.pipe(response, {end:true});
|
.pipe(response, {end:true});
|
||||||
|
|
||||||
}).listen(PORT);
|
}).listen(PORT);
|
||||||
|
Loading…
Reference in New Issue
Block a user