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

Question: is beaver-logger compatible with the lusca's csrf check? #3

Closed
suryagh opened this issue Jun 3, 2016 · 3 comments
Closed

Comments

@suryagh
Copy link

suryagh commented Jun 3, 2016

beaver-logger seems to make an ajax-post to send the logs to the server. This post method type is hard-coded, and is failing when kraken's lusca middleware is enabled with csrf check.

Probably, there should be a way to pass-in the csrf token to the beaver-logger which in turn will get added as ['XSRF-TOKEN'] header of the post request?

@bluepnume
Copy link
Collaborator

Good thought. I'm thinking it would be good to have a buildCustomHeaders() to pass in whatever headers are needed.

@bluepnume
Copy link
Collaborator

Here we go! https://github.com/krakenjs/beaver-logger#loggeraddheaderbuilderfunction

@suryagh
Copy link
Author

suryagh commented Jun 4, 2016

Awesome! Thank you.I will test this on Monday.

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

No branches or pull requests

2 participants