Disable cookie in server for connect production.

This commit is contained in:
Konstantinos Triantafyllou 2023-05-24 14:31:08 +03:00
parent 2b83920bc4
commit e6974dfd0f
1 changed files with 1 additions and 1 deletions

View File

@ -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({