From e96fa17b61404adab571e38f47c3612cc02df3ce Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 15 Aug 2019 14:58:17 -0400 Subject: [PATCH] dont use credentials for safari --- src/services/api.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 97e6e216fa6..a6184b86a37 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -113,6 +113,7 @@ export class ApiService implements ApiServiceAbstraction { private isWebClient = false; private isDesktopClient = false; private usingBaseUrl = false; + private useCredentials = true; constructor(private tokenService: TokenService, private platformUtilsService: PlatformUtilsService, private logoutCallback: (expired: boolean) => Promise) { @@ -124,6 +125,7 @@ export class ApiService implements ApiServiceAbstraction { device === DeviceType.UnknownBrowser || device === DeviceType.VivaldiBrowser; this.isDesktopClient = device === DeviceType.WindowsDesktop || device === DeviceType.MacOsDesktop || device === DeviceType.LinuxDesktop; + this.useCredentials = device !== DeviceType.SafariBrowser; } setUrls(urls: EnvironmentUrls): void { @@ -1015,7 +1017,7 @@ export class ApiService implements ApiServiceAbstraction { } private getCredentials(): RequestCredentials { - if (!this.isWebClient || this.usingBaseUrl) { + if (this.useCredentials && (!this.isWebClient || this.usingBaseUrl)) { return 'include'; } return undefined;