-
Notifications
You must be signed in to change notification settings - Fork 52
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
X-XSRF-TOKEN request header should be X-CSRF-TOKEN instead in the documentation #170
Comments
Hey @youyoumu, thanks for the issue! I'm happy that inertia-rails became your first OSS repo to contribute an issue to! 😄 It's a bit tricky, but Inertia Rails supports inertia-rails/lib/inertia_rails/middleware.rb Lines 93 to 95 in 234aaab
So the example from your reproduction will work once you add the X-Inertia header.
|
i see. what if we add additional note? Note
or it's not needed because people should use |
Yup, sounds great 🙏 |
ok. i just created the PR #171 😄 |
docs: https://inertia-rails.dev/guide/csrf-protection
reference: https://guides.rubyonrails.org/security.html#csrf-countermeasures
here is the video showing X-XSRF-TOKEN doesn't work but X-CSRF-TOKEN does
Screencast.From.2024-11-30.17-43-11.mp4
note: this is my first issue on open source project, can i get assigned to this? 👀
The text was updated successfully, but these errors were encountered: