Cookie is correctly set by the server.
No redirect or unexpected response.
AllowCredentials()
and proper WithOrigins()
are set in CORS.
Using JS fetchWithCredentials
and/or HttpClient
as needed.
No /api/auth/me
or additional identity verification.
Response is 200
, but IsSuccessStatusCode
is somehow false (or response.Content
is null).
Why does the HttpResponseMessage
in Blazor WebAssembly return false for IsSuccessStatusCode
or null
for content even though the response is 200 and cookies are correctly set?
Is this a known limitation or setup issue when using cookie-based auth with Blazor WASM?
Any help from someone who faced a similar setup would be appreciated!