Closed Isopach closed 6 years ago
Thanks for the PR, but this doesn't actually prevent any CSRF attacks because the backend will still respond to GET/POST requests from outside sources (the ones you actually care about). I think I'd prefer to go the path of using CSRF tokens, and the most important parts to hit will be the admin tools which I realize are wide open to attack right now.
Ahh yes, using tokens would be a better way than this stopgap unless you disabled POST on the backend too. Let me know if I can help in any way.
Prevents CSRF and resolves #23