Fix #80 - Cannot access accounts with proxy header auth

This commit is contained in:
Bubka
2022-05-19 15:50:06 +02:00
parent 9deb821d53
commit abce20419b
6 changed files with 50 additions and 33 deletions

5
resources/js/api.js vendored
View File

@ -40,6 +40,11 @@ Vue.axios.interceptors.response.use(response => response, error => {
routeName = 'login'
}
if ( error.response.status === 407 ) {
router.push({ name: 'genericError', params: { err: error.response, closable: false } })
throw new Vue.axios.Cancel();
}
// api calls are stateless so when user inactivity is detected
// by the backend middleware it cannot logout the user directly
// so it returns a 418 response.