From eddd19daea3cb5c89bda779b98b3d1ef4eace068 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 2 May 2026 07:33:32 +0000 Subject: [PATCH] Allow CORS for all domains under xmoj-script.uk Agent-Logs-Url: https://github.com/XMOJ-Script-dev/XMOJ-bbs/sessions/29dec5cb-37ff-47bc-8f8d-ed7d9a5947bb Co-authored-by: PythonSmall-Q <106425289+PythonSmall-Q@users.noreply.github.com> --- Source/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/index.ts b/Source/index.ts index 57c8e05..0df75ad 100644 --- a/Source/index.ts +++ b/Source/index.ts @@ -55,6 +55,9 @@ const getAllowedOrigin = (origin: string): string | null => { if (/^https:\/\/[a-z0-9-]+\.xmoj-script[a-z0-9-]*\.pages\.dev$/.test(origin)) { return origin; } + if (/^https:\/\/[a-z0-9-]+\.xmoj-script\.uk$/.test(origin)) { + return origin; + } if (/^https:\/\/(www\.|dev\.)?xmoj-bbs\.me$/.test(origin)) { return origin; }