Page Function failing for POST requests

I have a static website hosted with Pages and requesting some KV data through Pages Functions.
Every GET request to functions made with onRequestGet is working well, as expected.
But a POST request from a form submission to a function made with onRequestPost is failing with the HTTP status 405: Method not allowed.

2 posts were merged into an existing topic: CF Pages Functions Wrangler Dev 405 Method Not Allowed Locally