Skip to content

Commit

Permalink
set secure_cookie default from browser protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Aug 6, 2020
1 parent 309e9b8 commit 522ef9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posthog-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var DEFAULT_CONFIG = {
upgrade: false,
disable_persistence: false,
disable_cookie: false,
secure_cookie: false,
secure_cookie: window.location.protocol === 'https:',
ip: true,
opt_out_capturing_by_default: false,
opt_out_persistence_by_default: false,
Expand Down

0 comments on commit 522ef9b

Please sign in to comment.