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

Mitigate CSRF attacks #206

Merged
merged 2 commits into from
Jul 14, 2022
Merged

Conversation

MarcusWichelmann
Copy link
Contributor

@MarcusWichelmann MarcusWichelmann commented Jul 8, 2022

This PR implements a simple mitigation for CSRF attacks. See here for a good read about this.
CSRF-Tokens would be a better solution of course, but I wasn't sure about how to implement this in the existing codebase cleanly. But the approach in this PR should be sufficient, too.

It also removes the CORS exceptions which were pretty wide (wildcard). I couln't imagine, why these would be necessary in the scope of this app.

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.

2 participants