Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SameSite logic to handle UserAgents that don't support the attribute #1172

Merged
merged 1 commit into from Jan 29, 2020

Conversation

MSNev
Copy link
Collaborator

@MSNev MSNev commented Jan 28, 2020

No description provided.

@MSNev MSNev requested a review from a team as a code owner January 28, 2020 22:22
let location = getLocation();
if (location && location.protocol === "https:") {
secureAttrib = ";secure";
if (!Util.disallowsSameSiteNone((getNavigator()||{} as Navigator).userAgent)) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this something we can only call once instead of calling it every time we want to set a cookie?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point -- let me change this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updates

@MSNev MSNev force-pushed the MSNev/AddSameSiteUserAgentCheck branch from 76f8c0c to 53f263f Compare January 28, 2020 23:05
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.

None yet

2 participants