diff options
| author | Fuwn <[email protected]> | 2026-03-22 03:45:51 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-22 03:50:07 +0000 |
| commit | a1a747d6b46cc653f1716f6f71cf02284b0f20cd (patch) | |
| tree | 01c0e6f9bcef809efc07f7a1032f49b9d58e8faa /src/routes/api/subsplease/+server.ts | |
| parent | refactor: extract app origin config (diff) | |
| download | due.moe-a1a747d6b46cc653f1716f6f71cf02284b0f20cd.tar.xz due.moe-a1a747d6b46cc653f1716f6f71cf02284b0f20cd.zip | |
refactor: centralise site origin usage
Diffstat (limited to 'src/routes/api/subsplease/+server.ts')
| -rw-r--r-- | src/routes/api/subsplease/+server.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/api/subsplease/+server.ts b/src/routes/api/subsplease/+server.ts index 93b91609..6ef2d832 100644 --- a/src/routes/api/subsplease/+server.ts +++ b/src/routes/api/subsplease/+server.ts @@ -1,3 +1,5 @@ +import { appOriginHeaders } from "$lib/Utility/appOrigin"; + export const GET = async ({ url }) => Response.json( await ( @@ -8,9 +10,8 @@ export const GET = async ({ url }) => ) ).json(), { - headers: { + headers: appOriginHeaders({ "Cache-Control": "max-age=86400, s-maxage=86400", - "Access-Control-Allow-Origin": "https://due.moe", - }, + }), }, ); |