- temp fix to resolve 403;
This commit is contained in:
@@ -8,11 +8,12 @@ export class NetworkService {
|
|||||||
if (status === 500) {
|
if (status === 500) {
|
||||||
logMsgWithSentry(endpoint, status, resp);
|
logMsgWithSentry(endpoint, status, resp);
|
||||||
} else if (status === 403) {
|
} else if (status === 403) {
|
||||||
storeSet('token', '');
|
console.error('endpoint: ', endpoint, status);
|
||||||
|
/*storeSet('token', '');
|
||||||
const { pathname } = window.location;
|
const { pathname } = window.location;
|
||||||
if (!['/login', '/registration', '/loginadmin', '/reset-password-admin', '/confidi', '/reset-password'].includes(pathname)) {
|
if (!['/login', '/registration', '/loginadmin', '/reset-password-admin', '/confidi', '/reset-password'].includes(pathname)) {
|
||||||
window.location.replace('/login');
|
window.location.replace('/login');
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user