v154 · targetAddressSpace

What counts as local

Three address spaces, three sets of rules, and a surprising amount of ambiguity at the edges. Classify a list of hosts and see which connections need the option — and which ones people think are local but are not.

Classify some hosts

Address space, and what a connection from an https:// page needs
hostspacewhyneeds targetAddressSpace?

The classification here is by address literal, which is what the browser can do before a DNS lookup. A name like printer.local cannot be classified until it resolves — which is exactly why the page has to declare its intent rather than the browser inferring it. That declaration is what the option is.

the three spaces

see also