Update Logout to use POST instead of GET

This commit is contained in:
Tim Donohue
2021-01-06 10:30:15 -06:00
parent 5b23ffa2dc
commit 43c37c2b75

View File

@@ -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<AuthStatus>) => {
const status = rd.payload;
if (hasValue(status) && !status.authenticated) {