Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clientless Flurl from inside Blazor WASM gives 'opaqueredirect' and makes no actual call #853

Open
mennowo opened this issue Feb 24, 2025 · 0 comments

Comments

@mennowo
Copy link

mennowo commented Feb 24, 2025

Given the following call from inside a Blazor WebAssembly app

var response = await configuration.Endpoint
    .AppendPathSegment(endpoint)
    .WithHeader("api-version", "1.0")
    .PutJsonAsync(item)
    .ConfigureAwait(false);

the endpoint seems not to be actually called (breakpoint in API is not hit; on the other hand, get endpoints do work). The response has succes code 0 and reasonphrase 'opaqueredirect'. Is this expected behaviour in this context? That is, is the clientless pattern not fit for using in Blazor WASM?

I have extensively searched but have been unable to find definitive information. There is for example this, would that be the way to go? This would involve extensive refactoring in my code, so the clientless pattern would be preferable; however, if for some reason this is not possible, this is also good to know.

Happy to have any input. Feel free to close this as a non-issue in case I am simply overlooking some documentation here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant