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 {
|
||||
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({
|
||||
|
|
Loading…
Reference in New Issue