Skip to content

Commit b6c8a1f

Browse files
ericlaw1979pmeenan
authored andcommitted
Skip localhost when evaluating HSTS upgrades
Fixes whatwg#1780.
1 parent 3206e00 commit b6c8a1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4517,6 +4517,8 @@ steps:
45174517
"<code>http</code>"
45184518
<li><var>request</var>'s <a for=request>current URL</a>'s <a for=url>host</a> is a
45194519
<a for=/>domain</a>
4520+
<li><var>request</var>'s <a for=request>current URL</a>'s <a for=url>host</a>'s
4521+
<a for=host>public suffix</a> is not "<code>localhost</code>" or "<code>localhost.</code>"
45204522
<li>Matching <var>request</var>'s <a for=request>current URL</a>'s <a for=url>host</a> per
45214523
<a href=https://www.rfc-editor.org/rfc/rfc6797.html#section-8.2>Known HSTS Host Domain Name Matching</a>
45224524
results in either a superdomain match with an asserted <code>includeSubDomains</code> directive

0 commit comments

Comments
 (0)