How do I get forms to POST when (with-csrf-token) is enabled? #105
-
Hi all, I keep getting status=403 when (with-csrf-token) is one of the middlewares. What am I doing wrong, and how can I fix this? What do I need to know to get this to work? Thanks for your help.
|
Beta Was this translation helpful? Give feedback.
Answered by
swlkr
Jul 23, 2023
Replies: 1 comment 2 replies
-
You can use form-for or find the csrf-token and put that as a hidden input in your form defn |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ohmyohmyohmy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use form-for or find the csrf-token and put that as a hidden input in your form defn
https://github.com/joy-framework/joy/blob/master/docs/form-submission.md#submitting-a-form-with-no-protection