chore: Use 'Lax' instead of 'None' (#1129)

fixes: #919 

Signed-off-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Pranav Raj S
2020-08-09 18:13:17 +05:30
committed by GitHub
parent 0adbc346df
commit ec3c2ed4bb
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ import moment from 'moment';
import Cookies from 'js-cookie';
import { frontendURL } from '../../helper/URLHelper';
Cookies.defaults = { sameSite: 'Lax' };
export const getLoadingStatus = state => state.fetchAPIloadingStatus;
export const setLoadingStatus = (state, status) => {
state.fetchAPIloadingStatus = status;

View File

@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_chatwoot_session'
Rails.application.config.session_store :cookie_store, key: '_chatwoot_session', same_site: :lax