Skip to content

Commit

Permalink
fix(frontend): Safarie redirection loop (#625)
Browse files Browse the repository at this point in the history
* Update HttpRedirectToLogin.ts

* Update HttpRedirectToLogin.ts
  • Loading branch information
paule96 authored Apr 14, 2020
1 parent 46b1047 commit 584ef29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class HttpRedirectToLogin implements HttpInterceptor {
}
}),
catchError((err, d) => {
if (err instanceof HttpErrorResponse && err.status == 401) {
if (err instanceof HttpErrorResponse && err.status == 401 && err.headers.has('Location')) {
const location = err.headers.get('Location') as string;
window.location.replace(location);
}
Expand Down

0 comments on commit 584ef29

Please sign in to comment.