web/admin: reset cookie_domain when setting non-domain forward auth
closes #4063 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
5262d89505
commit
94833dd1e7
|
@ -72,6 +72,9 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
|||
|
||||
send = (data: ProxyProvider): Promise<ProxyProvider> => {
|
||||
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,
|
||||
|
|
Reference in New Issue