Properties: add hasMachineCache in order to use cookie or not.
This commit is contained in:
parent
95a3cc3ff6
commit
39a7ed58be
|
@ -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({
|
||||
|
|
|
@ -144,4 +144,5 @@ export interface EnvProperties {
|
|||
connectPortalUrl?;
|
||||
eoscDataTransferAPI?;
|
||||
eoscDataTransferDestinations?;
|
||||
hasMachineCache?: boolean;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue