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

Remove all CSRF checks from API endpoints #1186

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

moveson
Copy link
Collaborator

@moveson moveson commented Nov 11, 2023

CSRF protection isn't necessary for JSON API endpoints. I think I did not fully understand that when I wrote this json_web_token_present? logic.

This PR removes that logic and skips the CSRF action entirely for all API endpoints.

@moveson moveson merged commit 451ea4a into master Nov 11, 2023
2 checks passed
@moveson moveson deleted the oveson/remove-csrf-verification-from-api branch November 11, 2023 04:17
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.

1 participant