From 5f8e0c2b3497603a1387ba6fd3454f06989947df Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Fri, 8 May 2020 13:36:31 +0200 Subject: [PATCH] set sameSite value in cookie --- ffplayout/frontend/store/auth.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ffplayout/frontend/store/auth.js b/ffplayout/frontend/store/auth.js index 5df2dac1..ea79a418 100644 --- a/ffplayout/frontend/store/auth.js +++ b/ffplayout/frontend/store/auth.js @@ -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) => {