Skip to content

Commit d20628b

Browse files
committed
fix: add DELETE to CORS allowed methods
1 parent f0c6f80 commit d20628b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/handleCors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function handleOptions(request: Request) {
2323
} else {
2424
return new Response(null, {
2525
headers: {
26-
Allow: "GET, HEAD, POST, PUT, OPTIONS",
26+
Allow: "GET, HEAD, POST, PUT, OPTIONS, DELETE",
2727
},
2828
})
2929
}

0 commit comments

Comments
 (0)