Skip to content

Commit

Permalink
Use fetch-like credentials option instead of HTML-like crossOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Feb 2, 2016
1 parent ce060fd commit 7ab1e80
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions source
Expand Up @@ -2791,6 +2791,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn data-noexport="" data-x-href="https://fetch.spec.whatwg.org/#process-response">process response</dfn>
<li><dfn data-noexport="" data-x="concept-header-list-set" data-x-href="https://fetch.spec.whatwg.org/#concept-header-list-set">set</dfn>
<li><dfn data-noexport="" data-x="concept-fetch-terminate" data-x-href="https://fetch.spec.whatwg.org/#concept-fetch-terminate">terminate</dfn>
<li>the <dfn data-noexport="" data-x-href="https://fetch.spec.whatwg.org/#requestcredentials"><code>RequestCredentials</code></dfn> enumeration</li>
<li>
<dfn data-noexport="" data-x="concept-response" data-x-href="https://fetch.spec.whatwg.org/#concept-response">response</dfn> and its associated:
<ul class="brief">
Expand Down Expand Up @@ -94137,32 +94138,17 @@ interface <dfn>WorkerGlobalScope</dfn> : <span>EventTarget</span> {
<dt>"<code data-x="">module</code>"</dt>
<dd>
<ol>
<li>
<p>Let <var>credentials mode</var> be determined by switching on the value of the
<code data-x="">crossOrigin</code> member of <var>options</var>:</p>

<dl class="switch">
<dt>null</dt>
<dd>"<code data-x="">omit</code>"</dd>

<dt>"<code data-x="">anonymous</code>"</dt>
<dd>"<code data-x="">same-origin</code>"</dd>

<dt>"<code data-x="">use-credentials</code>"</dt>
<dd>"<code data-x="">include</code>"</dd>
</dl>
</li>

<li><p>Set <var>worker global scope</var>'s <span
data-x="concept-WorkerGlobalScope-fetch-mode">fetch mode</span> to
"<code data-x="">cors</code>".</p></li>

<li><p>Set <var>worker global scope</var>'s <span
data-x="concept-WorkerGlobalScope-credentials-mode">credentials mode</span> to
<var>credentials mode</var>.</p></li>
the value of the <code data-x="">credentials</code> member of <var>options</var>.</p></li>

<li><p><span>Fetch a module script tree</span> given <var>url</var>, <var>credentials
mode</var>, and <var>settings object</var>.</p></li>
<li><p><span>Fetch a module script tree</span> given <var>url</var>, the value of the <code
data-x="">credentials</code> member of <var>options</var>, and <var>settings
object</var>.</p></li>
</ol>
</dl>

Expand Down Expand Up @@ -94540,11 +94526,10 @@ interface <dfn>Worker</dfn> : <span>EventTarget</span> {

dictionary <dfn>WorkerOptions</dfn> {
<span>WorkerType</span> type = "classic";
<span>WorkerCrossOriginMode</span>? crossOrigin = null;
<span>RequestCredentials</span> credentials = "omit";
};

enum <dfn>WorkerType</dfn> { "classic", "module" };
enum <dfn>WorkerCrossOriginMode</dfn> { "anonymous", "use-credentials" };

<span>Worker</span> implements <span>AbstractWorker</span>;</pre>

Expand Down

0 comments on commit 7ab1e80

Please sign in to comment.