diff --git a/src/utils/static.ts b/src/utils/static.ts index 3aca8fe1..65594c8f 100644 --- a/src/utils/static.ts +++ b/src/utils/static.ts @@ -15,6 +15,7 @@ export async function serveStatic( ): Promise { if (event.request.method !== "GET" && event.request.method !== "HEAD") { if (!options.fallthrough) { + event.response.headers.set("allow", "GET, HEAD"); throw createError({ statusMessage: "Method Not Allowed", statusCode: 405,