From 1eee5d60a3c6309fc60de96360bc0313f23fcc2b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 22 Jan 2024 21:27:04 -0800 Subject: feat(index.ts): cors for due.moe --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 0b4b940..f78af6a 100644 --- a/index.ts +++ b/index.ts @@ -103,6 +103,7 @@ const handleRequest = async (originalRequest) => { "cache-control", "public, immutable, s-maxage=31536000, max-age=31536000, stale-while-revalidate=60" ); + response.headers.set("Access-Control-Allow-Origin", "https://due.moe"); return new Response(response.body, { status: response.status, -- cgit v1.2.3