Skip to content

Commit 89bde10

Browse files
committed
Allow any origin
1 parent 9b070a5 commit 89bde10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async function request() {
2727
const server = http.createServer((req, res) => {
2828
request().then(() => {
2929
res.setHeader('Content-Type', 'application/json');
30+
res.setHeader('Access-Control-Allow-Origin', '*');
3031
res.end(JSON.stringify(currentData));
3132
});
3233
});

0 commit comments

Comments
 (0)