When I run my app locally (http) it works fine.
When I run it on Railway (https) it works fine.
When I run it on fly.io (http) it works fine.
But after I enabled https on fly.io, when my login screen loads in the browser, I see this in the browser console:
Mixed Content: The page at 'https://dbme.app/sw.js' was loaded over HTTPS, but requested an insecure resource 'http://dbme.app/login'. This request has been blocked; the content must be served over HTTPS.
sw.js:1 Uncaught (in promise) TypeError: Failed to fetch
at X.fetch (sw.js:1:3960)
at d._handleInstall (sw.js:1:8482)
at d._handle (sw.js:1:7953)
at async d._getResponse (sw.js:1:7010)
I am using JDK 21 + Spring Boot 3.2.2 + Vaadin Flow 24.3.3
The Vaadin team has told me:
===
If the application is behind a reverse proxy, double check that both sides are configured to handle X-Forwarded headers
I have no clue how to check or adjust this in fly.io.
Any help is appreciated.
Matt M.