Closed notramo closed 3 months ago
Technically, an even better strategy would be to use DELETE
requests. But ultimately I agree with this and I think we can address this for the next major release.
Is it possible to have DELETE request with form submits? Does Marten support _method
field in forms?
Does Marten support
_method
field in forms?
It doesn't at the moment but this could be a nice addition to the framework.
The generated auth app uses GET for signout. This has the following disadvantages.
<a>
taghref
s onmouseenter
event, so when the user moves the mouse over the sign-out button, they are signed out.I recommend using an empty
<form>
with only a CSRF token, and a<button>
.