mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 06:35:47 +00:00
Remove 403 response redirection
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
5391bad7aa
commit
694db8ed85
@ -25,7 +25,9 @@ function checkStatus(response, checkToken = true) {
|
||||
return response;
|
||||
}
|
||||
|
||||
if ((response.status === 401 || response.status === 403) && auth.getToken() && checkToken) {
|
||||
// TODO handle 403...
|
||||
|
||||
if (response.status === 401 && auth.getToken() && checkToken) {
|
||||
// Temporary fix until we create a new request helper
|
||||
auth.clearAppStorage();
|
||||
window.location.reload();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user