Re:Show HN: Local development with .local domains and HTTPS
by plorntus on Tuesday August 01, 2023 @09:07AM
(#36955455)
Certain browser features/apis are only available when in a secure context https://www.digicert.com/blog/https-only-features-in-browser... so I imagine this might be a reason you would want it.
That being said I don't know why you would pay for an application that does this but I guess I'm not the target market.
Re:Show HN: Local development with .local domains and HTTPS
by ceejayoz on Tuesday August 01, 2023 @09:32AM
(#36955734)
Yep. A lot of OAuth integrations will refuse to work on HTTP, too. Some have a `localhost` exception to that restriction, but not all.
Re:Show HN: Local development with .local domains and HTTPS
by lostmsu on Tuesday August 01, 2023 @10:37AM
(#36956486)
This long article helpfully forgets to mention, that localhost/loopback addresses are considered secure without https.
https://developer.mozilla.org/en-US/docs/Web/Security/Secure...
Re:Show HN: Local development with .local domains and HTTPS
by WorldMaker on Tuesday August 01, 2023 @11:46AM
(#36957579)
Some features have still moved to TLS-only even for localhost. "Considered secure" is somewhat orthogonal to "requires TLS". You can only use HTTP/2 with TLS, for instance, whether or not you are in a "secure context".
Re:Show HN: Local development with .local domains and HTTPS
by mcny on Tuesday August 01, 2023 @09:07AM
(#36955456)
> I'm pretty sure I'm misunderstanding the value-add of having TLS for localhost connections...
It often feels like the noose is tightening tbh. There are things that contemporary "evergreen" web browsers just flat out refuse to do without https.
I think this is where they document this... https://www.chromium.org/Home/chromium-security/prefer-secur...
which I got from this stack overflow answer https://stackoverflow.com/a/34161385
Re:Show HN: Local development with .local domains and HTTPS
by capableweb on Tuesday August 01, 2023 @12:43PM
(#36958523)
Yes, which makes sense I guess, but localhost et al are already considered "secure origins" by that, so the features should be available regardless if you're doing TLS or not, if you're loading the document/page/application from localhost.
Re:Show HN: Local development with .local domains and HTTPS
by xcskier56 on Tuesday August 01, 2023 @09:09AM
(#36955480)
Dev <=> Prod parity. There are starting to be more things that require tls even for localhost
Re:Show HN: Local development with .local domains and HTTPS
by ravenstine on Tuesday August 01, 2023 @09:26AM
(#36955659)
TLS is easy enough... I'm just not sure why one would want or need a certificate authority involved with local connections other than to get rid of the nag screen in Firefox or Chrome.
Re:Show HN: Local development with .local domains and HTTPS
by bavell on Tuesday August 01, 2023 @09:34AM
(#36955756)
Mkcert makes it easy, why not?
Re:Show HN: Local development with .local domains and HTTPS
by rascul on Tuesday August 01, 2023 @09:16AM
(#36955550)
> I'm pretty sure I'm misunderstanding the value-add of having TLS for localhost connections...
.local tld is for the local subnet, not necessarily localhost.
Re:Show HN: Local development with .local domains and HTTPS
by waithuh on Tuesday August 01, 2023 @09:09AM
(#36955474)
Maybe its just to avoid browsers nagging and blocking you from using certain APIs that require a "Secure Context (https)"
I'm pretty sure I'm misunderstanding the value-add of having TLS for localhost connections...