ADD: Cors to imgs
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ app.use(PrimeVue, {
|
|||||||
});
|
});
|
||||||
app.use(ToastService);
|
app.use(ToastService);
|
||||||
app.use(ConfirmationService);
|
app.use(ConfirmationService);
|
||||||
app.use(VueCookies, { expires: 1000, sameSite: 'None', secure: true });
|
app.use(VueCookies, { expires: '1000d', sameSite: 'None', secure: true });
|
||||||
|
|
||||||
app.component('font-awesome-icon', FontAwesomeIcon);
|
app.component('font-awesome-icon', FontAwesomeIcon);
|
||||||
app.directive('tooltip', Tooltip);
|
app.directive('tooltip', Tooltip);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const login = async () => {
|
|||||||
email: email.value,
|
email: email.value,
|
||||||
password: password.value
|
password: password.value
|
||||||
});
|
});
|
||||||
Cookies.set('bm-token', response.data.data.token, { sameSite: 'none', secure: true, expires: '1000d', path: '.chbk.app' });
|
Cookies.set('bm-token', response.data.data.token, { sameSite: 'none', secure: true, expires: 1000, path: '.chbk.app' });
|
||||||
localStorage.setItem('bm-token', response.data.data.token);
|
localStorage.setItem('bm-token', response.data.data.token);
|
||||||
await router.push('/');
|
await router.push('/');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user