I have a Vue.js app up and running, which produces the following warning.
Mixed Content: The page at 'https://mypage.com/some/route' was loaded over HTTPS, but requested an insecure resource 'http://mypage.com/some/route'. This request has been blocked; the content must be served over HTTPS.
The request is visible in the network tab. That's not all however.
What could the problem be? How can I diagnose this spooky behavior?
Since there seems to be no obvious answer, I took the following steps.
vue-router
, but I also saw some other weird behaviors where the page wouldn't load.http-server
(https://github.com/indexzero/http-server/issues/80)Dockerfile
FROM kyma/docker-nginx
COPY dist /var/www
COPY ./dashboard.nginx
/etc/nginx/sites-enabled/default CMD 'nginx'
Copy the default
nginx config from the base image, and replace try_files $uri $uri/ @root;
with try_files $uri $uri/ /index.html;
.
That not only fixed the problem, but other related routing issues as well!