Skip to content

[NGraphQL.Client] Include Browser Request Credential for WebAssembly app #48

@jasonlaw

Description

@jasonlaw

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions