summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-22 21:27:04 -0800
committerFuwn <[email protected]>2024-01-22 21:27:04 -0800
commit1eee5d60a3c6309fc60de96360bc0313f23fcc2b (patch)
treea69a545d3b1621123f79f9c80549879682e693a2
parentfeat(index.ts): cache everything with polish (diff)
downloadcdn.due.moe-1eee5d60a3c6309fc60de96360bc0313f23fcc2b.tar.xz
cdn.due.moe-1eee5d60a3c6309fc60de96360bc0313f23fcc2b.zip
feat(index.ts): cors for due.moe
-rw-r--r--index.ts1
1 files changed, 1 insertions, 0 deletions
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,