logoalt Hacker News

nsbdhciebsbdhc • yesterday at 5:55 PM • 4 replies • view on HN

Let's not forget that crypto.getrandomvalue requires https which can force developers not using local https to use the insecure methods which they inevitably forget to update before shipping, all in the name of security by our great browser overloards and their infinite wisdom.


Replies

ronsor • yesterday at 6:10 PM

"http://localhost:*" and "http://\*.localhost:\*" are considered a secure origin, so you don't need HTTPS for it.

➕ show 1 reply
eddythompson80 • yesterday at 6:18 PM

They are using nodejs, not a browser to handle server side POST requests.

cyberax • yesterday at 10:48 PM

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 :(

➕ show 1 reply
spolitry • yesterday at 7:29 PM

[dead]