From 2cec4470ad079a6ce2c375be3230a8abe7072950 Mon Sep 17 00:00:00 2001 From: "maciek.nabialek" Date: Fri, 5 Jul 2024 16:35:04 +0200 Subject: [PATCH] updates default allowed headers --- .../server/src/common/config/environment-config.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apps/human-app/server/src/common/config/environment-config.service.ts b/packages/apps/human-app/server/src/common/config/environment-config.service.ts index 7cbaa467d2..80e23c3cfc 100644 --- a/packages/apps/human-app/server/src/common/config/environment-config.service.ts +++ b/packages/apps/human-app/server/src/common/config/environment-config.service.ts @@ -6,7 +6,8 @@ const DEFAULT_CACHE_TTL_USER_STATS = 15 * 60; const DEFAULT_CACHE_TTL_ORACLE_DISCOVERY = 24 * 60 * 60; const DEFAULT_CACHE_TTL_DAILY_HMT_SPENT = 24 * 60 * 60; const DEFAULT_CORS_ALLOWED_ORIGIN = 'http://localhost:5173'; -const DEFAULT_CORS_ALLOWED_HEADERS = 'Content-Type, Accept'; +const DEFAULT_CORS_ALLOWED_HEADERS = + 'Content-Type,Authorization,X-Requested-With,Accept,Origin'; const DEFAULT_CACHE_TTL_EXCHANGE_ORACLE_URL = 24 * 60 * 60; @Injectable() export class EnvironmentConfigService {