From 94833dd1e7e3e0df49b7187b8a7d8908dfc09359 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 22 Nov 2022 20:31:29 +0100 Subject: [PATCH] web/admin: reset cookie_domain when setting non-domain forward auth closes #4063 Signed-off-by: Jens Langhammer --- web/src/admin/providers/proxy/ProxyProviderForm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/admin/providers/proxy/ProxyProviderForm.ts b/web/src/admin/providers/proxy/ProxyProviderForm.ts index a47d56708..3b536ac78 100644 --- a/web/src/admin/providers/proxy/ProxyProviderForm.ts +++ b/web/src/admin/providers/proxy/ProxyProviderForm.ts @@ -72,6 +72,9 @@ export class ProxyProviderFormPage extends ModelForm { send = (data: ProxyProvider): Promise => { data.mode = this.mode; + if (this.mode !== ProxyMode.ForwardDomain) { + data.cookieDomain = ""; + } if (this.instance) { return new ProvidersApi(DEFAULT_CONFIG).providersProxyUpdate({ id: this.instance.pk || 0,