oqtane / oqtane.framework

CMS & Application Framework for Blazor & .NET MAUI
http://www.oqtane.org
MIT License
1.9k stars 550 forks source link

[BUG] Cookie “.AspNetCore.Culture” does not have a proper “SameSite” attribute value. #4710

Closed thabaum closed 1 month ago

thabaum commented 1 month ago

Oqtane Info

Version - #.#.# Render Mode - Static Interactivity - Server Database - SQL Server

Describe the bug

Cookie “.AspNetCore.Culture” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Expected Behavior

The cookie is set to "lax" or "none"

Steps To Reproduce

  1. Install Oqtane after building in Visual Studio
  2. Install languages in language management of control panel
  3. Switch Languages
  4. Check Console Logs In FireFox Browser developer tools

Anything else?

I think the cookie option settings from app.razor maybe getting removed instead of reapplied once the cookie changes for different languages. They may need applied again in the logic creating the cookie for the culture on change in the language switcher.