Security issues with self signed certificates [closed]

Context:

I have a webapp running on localhost port 8080 (localhost:8080)

It has a backend express server that serves as a backend api offering many /api/* endpoints

All requests with other urls that hit the server redirect the user to the /Welcome page where my react frontend code is.

I use self signed certificates to mimic real https behaviour on localhost.

Problems:

  1. When i go to localhost:8080, the webapp has recently encountered a problem where my browser shows an error saying my local certificates are not secure. I have checked their expiry and that they are valid. The app still works from localhost:8080 although the error shown is annoying. I’d like to point out also this issue never happened to me earlier in my developments.

  2. When I go to localhost:3000 usually I am able to access the development server with hot reloading etc.. (it’s a vite server) But since today, I get a Provisional Headers Only error. (on any browsers) This makes the dev server totally unusable.

Can anybody give me hints how I can debug these issues, specifically the localhost:3000 issue as I need to get some developments going.

Thanks a lot.