Skip to content

Commit 719a18f

Browse files
committed
CLEAR: Actually block on insecure requests.
1 parent 3277d22 commit 719a18f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

specs/clear-site-data/index.src.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,18 @@ <h3 id="clear">
420420
<a><code>Clear-Site-Data</code></a> header to determine what needs to be
421421
cleared, which origins are affected, and then executes those requests.
422422

423-
1. Let <var>exclusions</var> be the result of [[#get-exclusions]] executed on
423+
1. If <var>response</var>'s {{URL}} is <a><i lang="la">a priori</i>
424+
insecure</a>, skip the remaining steps of this algorithm.
425+
426+
ISSUE: Some have suggested that this might not be a restriction we want
427+
(see
428+
<a href="https://lists.w3.org/Archives/Public/public-webappsec/2015Jun/0032.html">Martin
429+
Thomson's public-webappsec post on the topic</a>, for example).
430+
431+
2. Let <var>exclusions</var> be the result of [[#get-exclusions]] executed on
424432
<var>response</var>.
425433

426-
2. Let <var>subdomain state</var> be the result of
434+
3. Let <var>subdomain state</var> be the result of
427435
[[#should-include-subdomains]] executed on <var>response</var>.
428436

429437
4. If <var>exclusions</var> does not contain "<code>contexts</code>", execute

0 commit comments

Comments
 (0)