From 88b5efafd5d4ec480ea50f75e15314974786f427 Mon Sep 17 00:00:00 2001 From: Maksim Efremov Date: Tue, 21 May 2024 01:53:29 +0300 Subject: [PATCH] fix(axios/withXSRFToken): additional to b7738a97c3177df02a3a9112112ac97e4afef118 --- packages/ui/src/ui/common/yt-api-init.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/ui/src/ui/common/yt-api-init.ts b/packages/ui/src/ui/common/yt-api-init.ts index 814969a28..c43f7f8c4 100644 --- a/packages/ui/src/ui/common/yt-api-init.ts +++ b/packages/ui/src/ui/common/yt-api-init.ts @@ -35,9 +35,7 @@ export function initYTApiClusterParams(cluster: string) { yt.setup.setGlobalOption('secure', true); } - if (config.authentication === 'domain') { - yt.setup.setGlobalOption('authentication', {type: 'domain'}); - } + yt.setup.setGlobalOption('authentication', {type: config.authentication || 'none'}); yt.subscribe('error', onError); }