diff options
| author | Fuwn <[email protected]> | 2024-01-22 21:27:04 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-22 21:27:04 -0800 |
| commit | 1eee5d60a3c6309fc60de96360bc0313f23fcc2b (patch) | |
| tree | a69a545d3b1621123f79f9c80549879682e693a2 | |
| parent | feat(index.ts): cache everything with polish (diff) | |
| download | cdn.due.moe-1eee5d60a3c6309fc60de96360bc0313f23fcc2b.tar.xz cdn.due.moe-1eee5d60a3c6309fc60de96360bc0313f23fcc2b.zip | |
feat(index.ts): cors for due.moe
| -rw-r--r-- | index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |