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

Add note about csrf.Path option #147

Merged
merged 1 commit into from
Apr 11, 2021
Merged

Conversation

karelbilek
Copy link

Our app started showing CSRF error for some users, and it took me a day to debug why.

I am adding this to readme so other people know where to look.

README.md Outdated
```
CSRF := csrf.Protect(
[]byte("a-32-byte-long-key-goes-here"),
csrf.Path("/")

Choose a reason for hiding this comment

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

It's a small nit-picky comment, but there should be a , at the end of this line to avoid the editor complaining

Copy link
Author

Choose a reason for hiding this comment

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

ah :D ok. I think it's even an error

Our app started showing CSRF error for some users, and it took me a day to debug why.

I am adding this to readme so other people know where to look.
@elithrar elithrar merged commit 46c0190 into gorilla:master Apr 11, 2021
@elithrar
Copy link
Contributor

Thanks!

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

3 participants