okta-react icon indicating copy to clipboard operation
okta-react copied to clipboard

withCredentials: false config option ends up being ignored in fetchRequest.js

Open Sch3lp opened this issue 5 years ago • 0 comments

Using okta-react: 3.0.8.

Tried passing withCredentials: false as a prop via the Security component, and also by passing it as a configuration option to a self instantiated AuthService (that we pass as a prop to the Security component).

But eventually in fetchRequest.js the withCredentials property ends up being true anyway.

More specifically in function fetchRequest(method, url, args), the args look like this (in debug):

{
data: undefined
headers: {Accept: "application/json", Content-Type: "application/json", X-Okta-User-Agent-Extended: "@okta/okta-react/3.0.8 okta-auth-js/3.2.5"}
withCredentials: true
}

Sch3lp avatar Nov 09 '20 09:11 Sch3lp