diff --git a/src/app/core/auth/server-auth.service.ts b/src/app/core/auth/server-auth.service.ts index 31b99c94d2..f6ff454a7b 100644 --- a/src/app/core/auth/server-auth.service.ts +++ b/src/app/core/auth/server-auth.service.ts @@ -1,8 +1,8 @@ -import { filter, map, switchMap, take } from 'rxjs/operators'; import { Injectable } from '@angular/core'; import { HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; +import { filter, map, switchMap, take } from 'rxjs/operators'; import { HttpOptions } from '../dspace-rest-v2/dspace-rest-v2.service'; import { AuthStatus } from './models/auth-status.model'; @@ -59,6 +59,7 @@ export class ServerAuthService extends AuthService { headers = headers.append('X-Requested-With', referer); } options.headers = headers; + options.withCredentials = true; return this.authRequestService.getRequest('status', options).pipe( map((status: NormalizedAuthStatus) => Object.assign(new AuthStatus(), status)) );