You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>If <var>parsedMetadata</var> is <code>no metadata</code>, return <code>true</code>.</li>
543
543
<li>If <ahref="#is-response-eligible-for-integrity-validation"><var>response</var> is not eligible for integrity
544
-
validation</a>, return <code>true</code>.</li>
544
+
validation</a>, return <code>false</code>.</li>
545
545
<li>Let <var>metadata</var> be the result of <ahref="#get-the-strongest-metadata-from-set">getting the strongest
546
546
metadata from <var>parsedMetadata</var></a>.</li>
547
547
<li>For each <var>item</var> in <var>metadata</var>:
@@ -579,12 +579,10 @@ <h4 id="does-response-match-metadatalist">Does <var>response</var> match <var>me
579
579
correctly, even if the HTTPS version of a resource differs from the HTTP
580
580
version.</p>
581
581
582
-
<pclass="note">This algorithm returns <code>true</code> if the response is not eligible for integrity
583
-
validation, on the general principle that client errors (in this case, an
584
-
attempt to validate the integrity of a response that is not accessible via
585
-
same-origin or CORS) should fail open since they are not the result of an attack
586
-
in the threat model of this specification. However, user agents SHOULD report
587
-
a warning message about this failure in the developer console.</p>
582
+
<pclass="note">This algorithm returns <code>false</code> if the response is not <ahref="#is-response-eligible-for-integrity-validation">eligible</a> for integrity
583
+
validation since Subresource Integrity requires CORS, and it is a logical error
584
+
to attempt to use it without CORS. Additionally, user agents SHOULD report a
585
+
warning message to the developer console to explain this failure.</p>
0 commit comments