I use Quarkus 3.9.3 with Qute (and Renarde).
My controller:
@Path("/")
public class LoginController {
...
@POST
@Path("/login")
@PermitAll
public Response postLogin() {
return Response.ok("Yes! ").build();
}
}
My template:
{#form uri:LoginController.postLogin() }
<button type="submit">send</button>
{/form}
all works fine and the server send me 200 ok BUT if I don’t use Qute form tag but I use JS, JQuery or HTML (i.e. like this):
<form method="post" action="{uri:LoginController.postLogin()}">
<button type="submit">manda</button>
</form>
the server send back a 400 error and I can’t figure out why! I don’t have any logs from backend and Chrome log in the console: Failed to load resource: the server responded with a status of 400 () chrome-error://chromewebdata/:1
Is there something that I missed to configure?
How Can I solve this issue?