From 568632f7f0304569bc86a957b61570fc7e30d843 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Sat, 27 Sep 2025 18:05:09 -0700 Subject: [PATCH] Feat: Add sune.chat to allowed origins --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d5d8d55..f290b68 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ export default { if (method === 'OPTIONS') return new Response(null, { status: 204, headers: CORS_HEADERS }); - if ((h => h !== 'sune.planetrenox.com' && !h.endsWith('.github.io'))(new URL(req.headers.get('Origin') || 'null').hostname)) return withCORS(new Response('Forbidden', { status: 403 })); + if ((h => h !== 'sune.planetrenox.com' && h !== 'sune.chat' && !h.endsWith('.github.io'))(new URL(req.headers.get('Origin') || 'null').hostname)) return withCORS(new Response('Forbidden', { status: 403 })); if (url.pathname === '/ws') { const isGet = method === 'GET';