Search code examples
angularfirefoxangular-cliangular-routingpolyfills

Angular App (Version 7.2) doesn't work on Firefox on localhost


I have an Angular app (version 7.2) that suddenly doesn't in Firefox when I open it on localhost. The browser says: "TLS handshake with localhost is in progress", but after a while I get a timeout. In Chrome and all other browsers, the app works without problems.

I noticed that although it can be called in Firefox, if I have the following settings in the angular.json (ssl property set to false):

     "serve": {
       "builder": "@angular-devkit / build-angular: dev-server",
       "options": {
         "browserTarget": "my-ui: build",
         "port": 8080,
         "ssl": false, // set it to false here
         "proxyConfig": "src / proxy.conf.js"
       },

However, this way my app does not work anymore, because everything (login, guards, etc.) is based on SSL.

Why does Firefox suddenly have this behavior and how can I solve this problem and still be able to use SSL?


Solution

  • Deleting my localhost cert and restarting the app worked for me.

    http://talk.manageiq.org/t/solved-firefox-performing-a-tls-handshake-is-slow/3046/11