set sameSite value in cookie
This commit is contained in:
parent
c70a5ad391
commit
5f8e0c2b34
@ -39,11 +39,13 @@ export const actions = {
|
|||||||
commit('UPDATE_IS_LOGIN', true)
|
commit('UPDATE_IS_LOGIN', true)
|
||||||
this.$cookies.set('token', response.data.access, {
|
this.$cookies.set('token', response.data.access, {
|
||||||
path: '/',
|
path: '/',
|
||||||
maxAge: 60 * 60 * 24 * 365
|
maxAge: 60 * 60 * 24 * 365,
|
||||||
|
sameSite: 'lax'
|
||||||
})
|
})
|
||||||
this.$cookies.set('refresh', response.data.refresh, {
|
this.$cookies.set('refresh', response.data.refresh, {
|
||||||
path: '/',
|
path: '/',
|
||||||
maxAge: 60 * 60 * 24 * 365
|
maxAge: 60 * 60 * 24 * 365,
|
||||||
|
sameSite: 'lax'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user