diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts index b6529aa9ca..fa29f1bc36 100644 --- a/src/app/core/auth/auth.service.ts +++ b/src/app/core/auth/auth.service.ts @@ -269,7 +269,7 @@ export class AuthService { let headers = new HttpHeaders(); headers = headers.append('Content-Type', 'application/x-www-form-urlencoded'); const options: HttpOptions = Object.create({ headers, responseType: 'text' }); - return this.authRequestService.getRequest('logout', options).pipe( + return this.authRequestService.postToEndpoint('logout', options).pipe( map((rd: RemoteData) => { const status = rd.payload; if (hasValue(status) && !status.authenticated) {