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

The /checkout endpoint should ignore CSRF #496

Conversation

ThomBreugelmans
Copy link
Contributor

I believe this endpoint should not be under CSRF protection. If it is, then first time users or people who have not used the application in a while will get an error page when trying to checkout the first time, which is not intended.

The issue and reasoning for adding this to the ignore filter has been discussed in issue #492 .

fixes #492

If this endpoint is not added to the ignore CSRF list then first time users will get an error when attempting checkout which is not preferrable.
Additionally there is no harm in not having the endpoint CSRF protected as there is no possible harm.
@JoepdeJong JoepdeJong merged commit 90744b5 into master May 27, 2024
5 checks passed
@dsluijk dsluijk deleted the 492-issues-with-first-time-checkout-as-unauthenticatedanonymous-user branch July 28, 2024 15:11
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.

Issues with first time checkout as unauthenticated/anonymous user
2 participants