Skip to content

Conversation

lfuelling
Copy link
Contributor

Hi,

This adds the ability to set the cookie SameSite attribute as requested in #14.

This implementation is using a boolean param that switches between Lax and Strict because I was unsure if it was okay to use Go types in the Options because they only contain primitives.

@lol768
Copy link

lol768 commented Sep 26, 2020

Thanks for doing this!

Copy link
Contributor

@unknwon unknwon left a comment

Choose a reason for hiding this comment

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

Thank you!

@unknwon unknwon linked an issue Sep 26, 2020 that may be closed by this pull request
@unknwon unknwon merged commit 6021384 into go-macaron:master Sep 26, 2020
@unknwon
Copy link
Contributor

unknwon commented Sep 26, 2020

A new release has been created for this merge: https://github.com/go-macaron/session/releases/tag/v1.0.0

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

Successfully merging this pull request may close these issues.

How do I set the SameSite option on the session cookies?
3 participants