You need to submit to an HTTPS end point.
On your local, enable HTTPS using self signed certificates. You can download the certificates from here and also watch the video on how to enable HTTPS on your local: https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/security/use-the-ssl-wiz...
Once HTTPS is enabled, you should be able to submit the form.