Skip to content

Add cookieSecure and cookieSameSite config options - #91

Open
edclements wants to merge 1 commit into
ankane:masterfrom
edclements:master
Open

edclements wants to merge 1 commit into
ankane:masterfrom
edclements:master

Conversation

@edclements

Copy link
Copy Markdown

Summary

  • Adds a cookieSecure config option (default false) that appends the secure attribute to cookies set by Ahoy, for sites served over HTTPS.
  • Adds a cookieSameSite config option (default "lax", matching current behavior) so the samesite attribute can be changed to "strict" or "none" as needed.

Usage

ahoy.configure({
  cookieSecure: true,
  cookieSameSite: "strict"
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant