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

CSRF with setting the buffer back after reading _csrf token #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

rambocoder
Copy link

No description provided.

@rambocoder
Copy link
Author

What do you think of this?

I got stuck on this rambocoder@62cdb5a#diff-73243618e93c04599ec851219e2e2863R55

because if I did ~ts instead of ~p, then if a CSRF token passed from the client was in UTF8 format, cowboy req blew up on iolist_size(Body). So I decided to stick with ~p

@rambocoder
Copy link
Author

@dvv ping

@dvv
Copy link
Owner

dvv commented May 29, 2014

Oh, sorry for delay. I commented on there.

@rambocoder
Copy link
Author

I updated with a new commit. Good idea on not exposing CSRF token. I was doing it more for logging and debugging purposes.

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