title: OIDC js library reponse cookies are not stored and not attaching for subsequent requests
body: <p>I am using authcodeflow with PKCE.</p>
  <p>Using OIDC js library in the frontend, making calls to adfs getting an auth code and then calling my backend api. The backend api which calls adfs server get the access token and the backend api returns the token as a cookie to the frontend. I can see the cookie in response headers. but That cookie is not stored in browser and not getting added for subsequent requests. I have tried with samesite with all modes -&gt; Lax, None,Strict and not setting.
  Is this an issue with OIDC js library or is it blocking the cookies to store in browser?</p>
  <p>Update:
  Below are the observation with my analysis
  Since the OIdc-client-js does not have an option to set flag &quot;withCredentials&quot; to true for the requests. There are no cookies send in the request and response cookies are ignored for the cross origin requests.This changes are marked as enhancement and still not completed in thier github repo.
  <a href="https://github.com/IdentityModel/oidc-client-js/issues/1062" rel="nofollow noreferrer">https://github.com/IdentityModel/oidc-client-js/issues/1062</a></p>
  <p>Is there any way to achieve with this library? or any other libraries for OIDC js</p>
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials</a></p>