From a2cef63550609ba974a67671894c643162f81eb9 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Mon, 25 Nov 2024 20:41:37 +0100 Subject: [PATCH] feat: add credentials: true to cors config --- src/components.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components.ts b/src/components.ts index a4cbd17..c7d64dd 100644 --- a/src/components.ts +++ b/src/components.ts @@ -16,8 +16,10 @@ export async function initComponents(): Promise { }) const cors = { origin: (await config.requireString('CORS_ORIGIN')).split(';').map(origin => new RegExp(origin)), - methods: await config.requireString('CORS_METHODS') + methods: await config.requireString('CORS_METHODS'), + credentials: true } + const tracer = createTracerComponent() const metrics = await createMetricsComponent(metricDeclarations, { config }) const logs = await createLogComponent({ metrics })