Angular running on local adress uses https for files


I am running my angular project on my local network with this command: ng serve --host=<ip_adress>. I can get onto the page via http from a mobile phone, but there I get the error message net::ERR_SSL_PROTOCOL_ERROR.
I don’t have anything set with https, the base is set in the index.html like this
<base href="/">

enter image description here


Found the answer/found my own mistake.

I still had the meta tag <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> in my index.html head.

Answered By – Jinxik

Answer Checked By – Timothy Miller (AngularFixing Admin)

Leave a Reply

Your email address will not be published.