Skip to content

Support secure mode for csrf cookie#7

Merged
unknwon merged 1 commit intogo-macaron:masterfrom
AleksandrBulyshchenko:csrf-cookie
Apr 26, 2018
Merged

Support secure mode for csrf cookie#7
unknwon merged 1 commit intogo-macaron:masterfrom
AleksandrBulyshchenko:csrf-cookie

Conversation

@AleksandrBulyshchenko
Copy link
Copy Markdown
Contributor

Options struct has Secure flag for csrf cookie, but it's just ignored
and corresponding argument of SetCookie() is hardcodded to false.

This pass Options.Secure to SetCookie in csrf.Generate()

Options struct has Secure flag for csrf cookie, but it's just ignored
and corresponding argument of SetCookie() is hardcodded to false.

This pass Options.Secure to SetCookie in csrf.Generate()

Signed-off-by: Aleksandr Bulyshchenko <A.Bulyshchenko@globallogic.com>
@unknwon
Copy link
Copy Markdown
Contributor

unknwon commented Apr 26, 2018

Thank you!

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.

2 participants