Moved config to ngConstant to mount that from outside the container
Change-Id: I23169cdeeae9034ea97e94089dcdbca3179bbb23
diff --git a/src/interceptors.ts b/src/interceptors.ts
index 273d19e..9e3ba65 100644
--- a/src/interceptors.ts
+++ b/src/interceptors.ts
@@ -13,9 +13,9 @@
const checkLogin = (res) => {
if (res.status === 401 || res.status === -1) {
- $cookies.remove('xoscsrftoken');
- $cookies.remove('xossessionid');
- $cookies.remove('xosuser');
+ $cookies.remove('xoscsrftoken', {path: '/'});
+ $cookies.remove('xossessionid', {path: '/'});
+ $cookies.remove('xosuser', {path: '/'});
$state.go('login');
}
return res;