Well generally I would just advise using a host that supports HTTPS, browsers quite aggressively prefer them nowadays.
Exporting as a HTML game and putting it on a local HTTP server would work. Using something like XAMPP, MAMP or simple-http-server.
Well its my own dedicated server. I could change it support https if I knew what setting it was, or how to do it. Any ideas on what I could change?
Right now I have the MYSQL database remote, and my php files on another server. The web server has been allowed to use the remote server by setting the IP of the web server as allowed in MySQL. I checked that it works by doing a simple html form from the web server. So connection, and input is working. I guess I just need to figure out the exact server setting to allow https posts.