Issue
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="/">
Solution
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

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.