From 8a0769a3c99f4ee92f6af0cad9b49e626ea39331 Mon Sep 17 00:00:00 2001 From: Ehsan Rezaei Date: Tue, 4 Jul 2023 19:57:23 +0200 Subject: [PATCH] [AAE-15523] Setting default value for csrf check (#8736) --- lib/core/src/lib/app-config/app-config.loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/lib/app-config/app-config.loader.ts b/lib/core/src/lib/app-config/app-config.loader.ts index 7893c033a1..55fd386c4e 100644 --- a/lib/core/src/lib/app-config/app-config.loader.ts +++ b/lib/core/src/lib/app-config/app-config.loader.ts @@ -21,7 +21,7 @@ import { AdfHttpClient } from '@alfresco/adf-core/api'; export function loadAppConfig(appConfigService: AppConfigService, storageService: StorageService, adfHttpClient: AdfHttpClient) { return () => appConfigService.load().then(() => { - adfHttpClient.disableCsrf = appConfigService.get(AppConfigValues.DISABLECSRF); + adfHttpClient.disableCsrf = appConfigService.get(AppConfigValues.DISABLECSRF, true); storageService.prefix = appConfigService.get(AppConfigValues.STORAGE_PREFIX, ''); }); }