-
Notifications
You must be signed in to change notification settings - Fork 59
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
Passing CSRF token in header not working on NGINX server, as underscores in header are not supported #178
Comments
Ok, so that is what @deployHuman referred to in #143 (comment) Line 272 in f66be97
Line 280 in f66be97
|
This needs addressing, but as it's a BC break, we'll need to roll a 2.0 for it I think. Until then, you can add:
to your nginx config as per https://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers |
hehe yeah my first PR got little to no love, i think i was too bad at describing what problem i had stumbled on. All good whishes from me tho! take care |
I agree. Catching Covid back in 2021 has proven to be challenging for some of us and the team is very small. No excuses, it's just where it is at. |
Putting no blame on you! |
Fixed in #186. |
@blizzz @akrabat regarding this PR to enable csrf token check in http header: #175
It seems that the CSRF keys have an underscore in them, and NGINX does not support underscores in headers. Is there any way to customize the csrf keys so we can remove the underscore?
The text was updated successfully, but these errors were encountered: