CSRF plugin for Mojolicious using built-in csrf_field / csrf_protect — thoughts welcome #2325
brianread108
started this conversation in
Show and tell
Replies: 1 comment
|
Looks like it could use some unit tests ... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I and my LLM helper have put together a small Mojolicious plugin that modernizes an older CSRF helper approach by switching it over to Mojolicious’s built-in CSRF support.
Repository: Mojolicious-Plugin-CSRFProtectBuiltin
The idea is:
The motivation is mostly practical: I have a Mojolicious app with a lot of existing form_for usage, and I wanted a low-friction way to add CSRF protection without editing every form by hand.
I’d really appreciate any thoughts on a few things:
If there’s interest, I can continue polishing it, add some tests, and publish it properly.
Thanks for any feedback
All reactions