enkodellc / blazorboilerplate

Blazor Boilerplate / Starter Template with MudBlazor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When running locally for development, cannot login with Firefox

EcBen opened this issue · comments

I'm not sure what's causing this, but it's working fine in Chrome.

In Firefox, entering the user/pass seems to work, but when redirected to the ReturnUrl page and it loads, the user gets logged out and redirected back to the login page.

Here's a screenshot of the console log and the Firefox dev tools log:
firefox-login

It probably has something to do with the SameSite cookie setting?

[13:17:11 WRN] The cookie 'idsrv.session' has set 'SameSite=None' and must also set 'Secure'.

There was a similar issue with Chrome, so it depends on how browser manages cookies and from version to version this can change.
Do you experience the same with https?

No, it seems to be fine when running with https. From here src/Server/BlazorBoilerplate.Server:

dotnet run --urls=https://*:53416

Chrome and Firefox logins work.
Then only using http, Firefox logins do not:

dotnet run --urls=http://*:53416

It was working a month or so ago in Firefox for http.