From 6ae46ca1ed3e3bc9655f18391cc1b02fc6867ad0 Mon Sep 17 00:00:00 2001 From: emallson Date: Mon, 9 Sep 2024 20:08:25 -0400 Subject: [PATCH] loosen CORS requirements on server this fixes some issues with the default configuration of the dev environment. can probably entirely remove this, but not right now. --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d165148..9978b9c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,7 +43,11 @@ app.register(secureSession, { }, }); app.register(cors, { - origin: [/localhost:3000/, /wowanalyzer.com/], + origin: [ + /127\.0\.0\.1:[0-9]{2,5}/, + /localhost:[0-9]{2,5}/, + /wowanalyzer.com/, + ], credentials: true, });