From a80f3b5c0db04c77a45d940564f564301c2ccee9 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Tue, 26 Nov 2024 18:10:00 +0100 Subject: [PATCH] feat: debug CORS issue --- src/components.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components.ts b/src/components.ts index 3f46eb7..7f713e2 100644 --- a/src/components.ts +++ b/src/components.ts @@ -16,6 +16,9 @@ export async function initComponents(): Promise { }) const corsString = await config.requireString('CORS_METHODS') const validCORSJsonString = corsString.replace(/'/g, '"') + console.log('corsString: ', corsString) + console.log('validCORSJsonString: ', validCORSJsonString) + console.log('JSON.parse(validCORSJsonString): ', JSON.parse(validCORSJsonString)) const cors = { origin: (await config.requireString('CORS_ORIGIN')).split(';').map(origin => new RegExp(origin)),