Treat `http://localhost` as a secure context
- Category
- Security
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- None
Summary
Developers generally expect `http://localhost` to have the same transport security characteristics as TLS, as it should resolve to a loopback address, and will therefore never hit the network. Chrome will ensure that this expectation is accurate by implementing https://tools.ietf.org/html/draft-west-let-localhost-be-localhost, and carves out `http://localhost` accordingly.
Standards & signals
- Specification: https://tools.ietf.org/html/draft-west-let-localhost-be-localhost
- Firefox: Positive
- Safari: No signal
- Web developers: Strongly positive
- Tracking bug: https://crbug.com/589141
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=treat-http-localhost-as-a-secure-context
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Treat%20%60http%3A%2F%2Flocalhost%60%20as%20a%20secure%20context
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Treat%20%60http%3A%2F%2Flocalhost%60%20as%20a%20secure%20context
- Baseline status: https://webstatus.dev/?q=Treat%20%60http%3A%2F%2Flocalhost%60%20as%20a%20secure%20context