Skip to content

Commit

Permalink
Make fetch() use "same-origin" credentials by default
Browse files Browse the repository at this point in the history
Most features in the platform have this default and not having this default causes multiple connections in contemporary implementations. It also causes confusion as switching from XMLHttpRequest to fetch() is not as seamless as it could be.

Making this change will also make it easier for <script type=module> to have this default as per discussion in whatwg/html#2557.
  • Loading branch information
annevk committed Aug 25, 2017
1 parent 8a91018 commit 5550bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4774,7 +4774,7 @@ constructor must run these steps:

<li><p>Set <var>fallbackMode</var> to "<code>cors</code>".

<li><p>Set <var>fallbackCredentials</var> to "<code>omit</code>".
<li><p>Set <var>fallbackCredentials</var> to "<code>same-origin</code>".
</ol>

<li>
Expand Down

0 comments on commit 5550bf9

Please sign in to comment.