Skip to content

Commit 16d6486

Browse files
committed
CORS
1 parent 3bdd83c commit 16d6486

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server.ts

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ function handleJsonp(req: Request, data: object): Response {
4343
return new Response(str, {
4444
headers: {
4545
"content-type": "application/json",
46+
"Access-Control-Allow-Origin": "*",
47+
"Access-Control-Allow-Methods": "GET",
48+
"Access-Control-Max-Age": "604800",
4649
},
4750
});
4851
}

0 commit comments

Comments
 (0)