feat(auth): do not handle redirection in getConfig

It will be handled by connectivity checker
This commit is contained in:
Pierre 2022-05-30 17:04:21 +02:00
parent f64278d41d
commit 132e9a0df5

View File

@ -231,13 +231,7 @@ export default {
},
getConfig: function (path = "assets/config.yml") {
return fetch(path).then((response) => {
if (response.redirected) {
// This allows to work with authentication proxies.
window.location.href = response.url;
return;
}
if (response.status == 404) {
if (response.status == 404 || response.redirected) {
this.configNotFound = true;
return {};
}