From e6974dfd0f989955999f7ccffa19e2e266867723 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 24 May 2023 14:31:08 +0300 Subject: [PATCH] Disable cookie in server for connect production. --- http-interceptor.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-interceptor.service.ts b/http-interceptor.service.ts index dadd3781..dab01120 100644 --- a/http-interceptor.service.ts +++ b/http-interceptor.service.ts @@ -36,7 +36,7 @@ export class HttpInterceptorService implements HttpInterceptor { } else { if (isPlatformServer(this.platformId)) { let headers = new HttpHeaders(); - if(request.withCredentials) { + if(request.withCredentials && (properties.dashboard !== 'connect' || properties.environment !== 'production')) { headers = headers.set('Cookie', this.req.get('Cookie')); } const authReq = request.clone({