C#C
C#5mo ago
Igor Bomfim

✅ Blazor Server does not store the cookie in the browser after login.

Hello people! I'm have some trouble trying to set up authorization in my blazor server app. I'm using an API made in .NET and Identity Framework to manage the authentication and authorization flow. I'm trying to consume it using my Blazor Server, although, when i try to login, it authenticate on the API, but the blazor server doesn't store the cookie that was sent by the API in the browser.

I've tried to set cors on the .NET API side, even in the blazor server too. But it still did not work as expected.

When i'm using the swagger to hit the login endpoint, it store normally on the browser, but through the blazor server it just ignore. I think it has to do with the cors, but i still don't know what is going on and how to solve it.
Was this page helpful?