set sameSite value in cookie

This commit is contained in:
Jonathan Baecker 2020-05-08 13:36:31 +02:00
parent c70a5ad391
commit 5f8e0c2b34

View File

@ -39,11 +39,13 @@ export const actions = {
commit('UPDATE_IS_LOGIN', true)
this.$cookies.set('token', response.data.access, {
path: '/',
maxAge: 60 * 60 * 24 * 365
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax'
})
this.$cookies.set('refresh', response.data.refresh, {
path: '/',
maxAge: 60 * 60 * 24 * 365
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax'
})
})
.catch((error) => {