Skip to content

Commit

Permalink
chore: Use 'Lax' instead of 'None' (#1129)
Browse files Browse the repository at this point in the history
fixes: #919 

Signed-off-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
  • Loading branch information
Pranav Raj S committed Aug 9, 2020
1 parent 0adbc34 commit ec3c2ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/javascript/dashboard/store/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ec3c2ed

Please sign in to comment.