Hi @rivantsov ,
I’m using NGraphQL.Client in a Blazor WebAssembly app and noticed that cookies are not being set or sent with GraphQL requests. After some investigation, it seems this is due to the browser’s default RequestCredentials policy.
In Blazor WebAssembly, we need to explicitly set:
request.SetBrowserRequestCredentials(BrowserRequestCredentials.Include);
to ensure cookies (e.g., authentication or session tokens) are included in requests.
Would it be possible to add a configurable parameter for that ?
Thanks in advance!
Hi @rivantsov ,
I’m using NGraphQL.Client in a Blazor WebAssembly app and noticed that cookies are not being set or sent with GraphQL requests. After some investigation, it seems this is due to the browser’s default RequestCredentials policy.
In Blazor WebAssembly, we need to explicitly set:
to ensure cookies (e.g., authentication or session tokens) are included in requests.
Would it be possible to add a configurable parameter for that ?
Thanks in advance!