I have a Railway/React/Vite frontend accessing a Railway/Fastapi backend, and my frontend receives the following error:
Mixed Content: The page at 'https://domain' was loaded over HTTPS, but requested an insecure resource 'http://domain'. This request has been blocked; the content must be served over HTTPS.
The URL does indicate https, but it seems Railway is trying to serve it on HTTP, which is rejected by the browser.
Strangely, it seems to only occur on the first request to the backend. Clicking to another page and returning, no longer an error.
I have been looking to see if I can change a Railway setting to force HTTPS. I do see under settings Railway explicitly mentions that I can acess my app over HTTP (see image) but this is not what I want.
Project ID: ac828fce-6f54-43e9-825c-ac4871d226ba