From 75d1d15844e79a9e5a00148def3072e76e54ad69 Mon Sep 17 00:00:00 2001 From: Alex Bass Date: Tue, 5 Mar 2024 17:48:05 +0100 Subject: [PATCH] =?UTF-8?q?Allow=20requests=20from=20quizzing=20origin=20?= =?UTF-8?q?=F0=9F=A4=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/worker/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/handler.ts b/src/worker/handler.ts index 0c80e3e..397f99e 100644 --- a/src/worker/handler.ts +++ b/src/worker/handler.ts @@ -20,7 +20,7 @@ interface Bindings extends Context { const API = new Router() API.prepare = CORS.preflight({ - origin: /quizzing\.ninja|localhost:3000/, + origin: /quizzing\.ninja|quizzing\.pages\.dev|localhost:3000/, headers: ['Cache-Control', 'Content-Type', 'X-Count'], methods: ['GET', 'HEAD', 'PUT', 'POST', 'DELETE'], })