When using any SDK generated in the browser, the fetch-http-handler package is used.
However, according the definition, it is impossible to change the value credentials of fetch. On SDKv2, it was possible to specify xhrWithCredentials (see Notable changes).
Specifying credentials can be useful when working with different origin on browsers, especially if you have multiple API.
Hello,
When using any SDK generated in the browser, the
fetch-http-handler
package is used.However, according the definition, it is impossible to change the value
credentials
offetch
. On SDKv2, it was possible to specifyxhrWithCredentials
(see Notable changes).Specifying
credentials
can be useful when working with different origin on browsers, especially if you have multiple API.This can be added by modifying following files:
credentials?
toFetchHttpHandlerOptions
intypes
packagecredentials
value torequestOptions
in filefetch-http-handler
Is this change relevant to you ? I will gladly open a Pull Request if it's the case.