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);