You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version - 5.2.3
Render Mode - Interactive
Interactivity - Server/WebAssembly
Database - SQL Server
Describe the bug
LanguageSwitcher does not switch language (Interactive Server / Interactive Webassembly) because of httpOnly culture cookie set to true and SignalR using JavaScript interop not allowing Oqtane to able to access these cookies directly.
thabaum
changed the title
[BUG] 5.2.3 - Cookies unable to be accessed while using Interactive Render Mode (SignalR + Javascript Interop).
[BUG] 5.2.3 - Cookies with HttpOnly=True unable to be accessed while using Interactive Render Mode (SignalR + Javascript Interop).
Oct 7, 2024
Oqtane Info
Version - 5.2.3
Render Mode - Interactive
Interactivity - Server/WebAssembly
Database - SQL Server
Describe the bug
LanguageSwitcher does not switch language (Interactive Server / Interactive Webassembly) because of httpOnly culture cookie set to
true
and SignalR using JavaScript interop not allowing Oqtane to able to access these cookies directly.Taken from discussion #4703
Expected Behavior
Culture (and visitor?) Cookie can be accessed while
Steps To Reproduce
Attempt switching languages via the LanguageSwitcher.razor control in the menu while using interactive render mode site setting.
Anything else?
Set 'HttpOnly=false' if render mode for the site is
Interactive
Works OK while in Static Render Mode.
Can these cookies be created using middleware to avoid JavaScript?
https://learn.microsoft.com/en-us/dotnet/api/microsoft.net.http.headers.setcookieheadervalue.httponly?view=aspnetcore-8.0
https://learn.microsoft.com/en-us/dotnet/api/microsoft.net.http.headers.setcookieheadervalue?view=aspnetcore-8.0
The text was updated successfully, but these errors were encountered: