Disable cookie in server for connect production.
This commit is contained in:
parent
2b83920bc4
commit
e6974dfd0f
|
@ -36,7 +36,7 @@ export class HttpInterceptorService implements HttpInterceptor {
|
||||||
} else {
|
} else {
|
||||||
if (isPlatformServer(this.platformId)) {
|
if (isPlatformServer(this.platformId)) {
|
||||||
let headers = new HttpHeaders();
|
let headers = new HttpHeaders();
|
||||||
if(request.withCredentials) {
|
if(request.withCredentials && (properties.dashboard !== 'connect' || properties.environment !== 'production')) {
|
||||||
headers = headers.set('Cookie', this.req.get('Cookie'));
|
headers = headers.set('Cookie', this.req.get('Cookie'));
|
||||||
}
|
}
|
||||||
const authReq = request.clone({
|
const authReq = request.clone({
|
||||||
|
|
Loading…
Reference in New Issue