'Is there a way to set up a "https to http" middle in GCP?
I hope this isn't a duplicate question. I set up a simple Java server based on Grizzly in GCP. It is an HTTP server servicing requests on 8080. I have not been able to set up an HTTPS server (and I tried...) and the server (which responds publicly to postman, curl, etc.) cannot receive any requests from my public website, since the website is on HTTPS. So when sending a request, this error obviously appears:
index.html was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint. This request has been blocked; the content must be served over HTTPS.
A (very...) naive attempt to just send a request to my endpoint using a link which has https and 443 results in:
failed to receive handshake, SSL/TLS connection failed
So my question is - if I am unable to define an HTTPS server (due to my own limitations), is there a way to configure a middle vm which will receive the client request on 443, send it to my actual server on 8080, then relay the response back?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
