Re: [whatwg/fetch] Define preconnect and dns-prefetch with CSP (PR #1620)

@noamr commented on this pull request.



> + <var>environment</var> and <var>url</var>. If that returns <b>blocked</b>, return.
+
+ <li><p>Let <var>proxies</var> be the result of calling <a>resolve proxies</a>.
+
+ <li>
+  <p>If <var>proxies</var> <a for=list>contains</a> "<code>DIRECT</code>", then
+  <a>resolve an origin</a> given <var>key</var> and <var>url</var>'s <a for=url>origin</a>.
+
+  <p class=note>As the results of this algorithm can be cached, future fetches could be faster.
+</ol>
+</div>
+
+<div algorithm="check-preemptive-operation-csp">
+<p>To <dfn>Should connection be allowed by Content Security Policy?</dfn>, given an
+<a>environment settings object</a> <var>environment</var>, and a <a for=/>URL</a> <var>url</var>,
+run these steps:

Fixed

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1620#discussion_r1187463340
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1620/review/1416830280@github.com>

Received on Monday, 8 May 2023 13:42:26 UTC