upvote
"http://localhost:*" and "http://\*.localhost:\*" are considered a secure origin, so you don't need HTTPS for it.
reply
I think it was true that you needed local https at one point (I vaguely remember setting it up once) but yes it no longer is
reply
They are using nodejs, not a browser to handle server side POST requests.
reply
BTW, a way to fix it is to create your own "localhost" name and issue a certificate for it. Then just commit it into your code repository.

I used to do that once every 3 years with a "regular" SSL provider. Unfortunately, now the longest period is 200 days. I'll have to set up Let's Encrypt automation for it eventually :(

reply
I mean depending on what you're doing you should be able to set up your own local CA and put the root cert on your internal devices and get certs as long as you want.
reply
Local CAs are a pain in the ass to maintain, and they are a huge vulnerability. If your CA private keys leak, your devices can be MITM-ed.

It pops up in all kinds of places, like CI/CD runs or automated tests.

reply
Hence you build your certs on an offline laptop.
reply
[dead]
reply