Skip to content

Commit f9d879a

Browse files
CORS
1 parent c553095 commit f9d879a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ Deno.serve(
2020
return new Response(null, {
2121
headers: {
2222
"Access-Control-Allow-Origin": "*",
23-
"Access-Control-Allow-Methods": "POST",
24-
"Access-Control-Allow-Headers": "Content-Type",
23+
"Access-Control-Allow-Methods": "GET, POST, OPTIONS, DELETE, PUT",
24+
"Access-Control-Allow-Headers":
25+
"Origin, X-Requested-With, Content-Type, Authorization, Accept",
2526
},
26-
status: 200,
27+
status: 204,
2728
});
2829
}
2930
if (req.method !== "POST") {

0 commit comments

Comments
 (0)