okta-react
okta-react copied to clipboard
withCredentials: false config option ends up being ignored in fetchRequest.js
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
}