From 65b057d67c2c424a8ea8129ed8217321f37a4413 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Mon, 4 Oct 2021 22:35:02 +0530 Subject: [PATCH] Revert "Add secure: true" This reverts commit 1f42a0f66179190d94d9006a27a225233ad40d06. --- app/javascript/dashboard/store/utils/api.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/store/utils/api.js b/app/javascript/dashboard/store/utils/api.js index 8a8a013bb..388af5884 100644 --- a/app/javascript/dashboard/store/utils/api.js +++ b/app/javascript/dashboard/store/utils/api.js @@ -24,8 +24,7 @@ export const setUser = (user, expiryDate, options = {}) => { } Cookies.set('user', user, { expires: differenceInDays(expiryDate, new Date()), - sameSite: 'None', - secure: true, + sameSite: 'Lax', }); }; @@ -36,8 +35,7 @@ export const setAuthCredentials = response => { const expiryDate = getHeaderExpiry(response); Cookies.set('auth_data', response.headers, { expires: differenceInDays(expiryDate, new Date()), - sameSite: 'None', - secure: true, + sameSite: 'Lax', }); setUser(response.data.data, expiryDate); };