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

csrf: improve validation #137

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

jrcastro2
Copy link
Contributor

With this PR the behaviour changes in the following way

Wrong method returns 405 (before it was returning 400 - Referer checking failed - no Referer.)

Screenshot from 2024-05-31 16-48-38

Wrong method with wrong token returns wrong token (before it was returning 400 - Referer checking failed - no Referer.)

Screenshot from 2024-05-31 16-48-22

If no token is set, nothing is checked (before it was returning 400 - Referer checking failed - no Referer.)

Screenshot from 2024-05-31 16-49-45

@kpsherva kpsherva merged commit 8f10125 into inveniosoftware:master Jul 4, 2024
@kpsherva kpsherva assigned kpsherva and unassigned kpsherva Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants