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

Passing CSRF token in header not working on NGINX server, as underscores in header are not supported #178

Open
JordanRifaey opened this issue Feb 2, 2024 · 1 comment

Comments

@JordanRifaey
Copy link

@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?

@blizzz
Copy link
Contributor

blizzz commented Feb 2, 2024

Ok, so that is what @deployHuman referred to in #143 (comment)

return $this->prefix . '_name';
and
return $this->prefix . '_value';
would need to be changed.

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