Re: [whatwg/fetch] Make fetch() use "same-origin" credentials by default (#585)

> function safe_fetch(url, init) { return fetch(arguments[0], { credentials: 'omit' } ); }
then this will always block sending credentials in every browser, correct?

Right. The topic is about changing the default which is used when the credentials parameter is not specified. You can still explicitly specify the credentials parameter with the value `omit` as you did to prevent credentials from being sent.

(Your example doesn't inherit values from `init`. Maybe you want to override credentials but inherit the other values from `init`.)

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

Received on Wednesday, 30 August 2017 05:09:51 UTC