forked from extern/homer
feat(auth): do not handle redirection in getConfig
It will be handled by connectivity checker
This commit is contained in:
parent
f64278d41d
commit
132e9a0df5
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user