Properties: add hasMachineCache in order to use cookie or not.

This commit is contained in:
Konstantinos Triantafyllou 2023-05-25 16:37:12 +03:00
parent 95a3cc3ff6
commit 39a7ed58be
2 changed files with 2 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 && (properties.dashboard !== 'connect' || properties.environment !== 'production')) {
if(request.withCredentials && !properties.hasMachineCache) {
headers = headers.set('Cookie', this.req.get('Cookie'));
}
const authReq = request.clone({

View File

@ -144,4 +144,5 @@ export interface EnvProperties {
connectPortalUrl?;
eoscDataTransferAPI?;
eoscDataTransferDestinations?;
hasMachineCache?: boolean;
}