Allow "localhost" as long as it actually resolves to a localhost address · Issue #43 · w3c/webappsec-secure-contexts
RFC 6761 does claim "Users may assume that IPv4 and IPv6 address queries for localhost names will always resolve to the respective IP loopback address." which would imply that it should be reasonab...
GitHub