I turned my angular project into a pwa as described on https://angular.io/guide/service-worker-getting-started
When I start the server with
http-server -p 8080 -c-1 dist/
only the
seems to be working and offers me to install the PWA. When I try to access
there seems to be an issue with the secure origin, so I can't install the PWA.
any hints what I'm doing wrong?
You're not doing anything wrong per se, One of the Requirements for making a PWA installable is by serving it over (https),
And for development purposes the browser considers (127.0.0.1:)
and (localhost:)
to be secure domains, But other customised domains are not recognised, hence are treated as development servers that are not secured. You should stick to 127.0.0.1 for the time being since it works, until you move to your potential Live secured server!