Update branch

Merge branch 'master' of https://github.com/strapi/strapi into add-overlay-blocker
This commit is contained in:
cyril lopez 2018-01-12 17:55:22 +01:00
commit 0d4b5003df

View File

@ -48,8 +48,7 @@ function checkTokenValidity(response) {
return fetch(`${strapi.backendURL}/user/me`, options)
.then(resp => {
if (response.status === 401) {
const { origin } = window.location;
window.location = `${origin}/admin/plugins/users-permissions/auth/login`;
window.location = `${strapi.remoteURL}/plugins/users-permissions/auth/login`;
auth.clearAppStorage();
}