Skip to content

Added secure and samesite params to cookies#20

Open
juhrlass wants to merge 3 commits into
ketanmistry:masterfrom
juhrlass:master
Open

Added secure and samesite params to cookies#20
juhrlass wants to merge 3 commits into
ketanmistry:masterfrom
juhrlass:master

Conversation

@juhrlass

Copy link
Copy Markdown

I also added some minimal build tooling (that you can leave out of course)

@helifrank

Copy link
Copy Markdown

In line 114 of jquery.ihavecookies.js the variables settings.secure and settings.samesite are not used for cookieControlPrefs.

Comment thread jquery.ihavecookies.js
prefs.push(field.value);
});
setCookie('cookieControlPrefs', encodeURIComponent(JSON.stringify(prefs)), 365);
setCookie('cookieControlPrefs', encodeURIComponent(JSON.stringify(prefs)), 365,true,'lax');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not use settings.secure,settings.samesite instead of true,'lax

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.

3 participants