Localhost

From MgmtWiki
Revision as of 14:43, 21 October 2024 by Tom (talk | contribs) (Created page with "Localhost ==Solution== 'Eric Lawrence' via blink-dev Unsubscribe Oct 18, 2024, 11:39 AM (3 days ago) to blink-dev, estark@chromium.org CL: https://chromium-review.goo...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Localhost

Solution

'Eric Lawrence' via blink-dev Unsubscribe Oct 18, 2024, 11:39 AM (3 days ago) to blink-dev, estark@chromium.org

CL: https://chromium-review.googlesource.com/c/chromium/src/+/5923046?tab=comments

Today, if a https://localhost:* response sets Strict-Transport-Security, HTTPS upgrades will be applied to all subsequent http://localhost requests, regardless of port.

Localhost is inherently a secure context, and Strict-Transport-Security response headers received on https://localhost responses can cause problems because they are not isolated by port. This leads to compatibility problems for end-users who use software packages that commonly spin up localhost webservers for ephemeral reasons (e.g. communication of an auth token from a web login to a local software package).

This is also a source of friction for web developers who test their applications locally for the same reason.

I propose we resolve this problem by matching Firefox's behavior and ignoring HSTS headers on responses returned from localhost URLs.

As requested, I've proposed an errata for RFC6797 to add the following to section 8.1.1: If the substring matching the host production from the Request-URI (of the message to which the host responded) syntactically matches the string "localhost" or ends with ".localhost", then the UA MAY choose not to note this host as a Known HSTS host.

-- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/138764fe-efad-406e-b3b0-3a1a600bc8d9n%40chromium.org.

Mike Taylor <miketaylr@chromium.org>

References