Would help if actually included the cors header
This commit is contained in:
parent
47eeba08be
commit
086dfad870
2
index.js
2
index.js
@ -31,6 +31,8 @@ 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});
|
||||||
|
Loading…
Reference in New Issue
Block a user