I have two services and want to make a call from service A to service B using private networking. When I try to make a request, I get the error:
Mixed Content: The page at '[...]' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '[...]'. This request has been blocked; the content must be served over HTTPS
I'm using http as specified in the docs here.
My request looks like this:
let url4 = "http://[service-name].railway.internal:8080/api/home";
axios
.post(url4)
.then((res) => {
const r = res.data;
alert(r["message"]);
})
.catch((err) => {
alert(url4 + err);
});
The request works when I make it via public networking.
Project ID: 1031bd42-29fd-490d-aa39-3bffdaef2fb1