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
Hi, I'm using the new Blazor template with global Auto-render mode. When the user first time visits the site, the response is rendered on the backend, I need to store user preferences in a cookie (language, etc) on change, but I can't create a cookie as an exception is thrown saying that the response already started, I assume that's because its SignalR call. After dotnet wasm runtime is loaded there are no issues, but the first request is an issue.
Is there any other way to set a cookie on a first request?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using the new Blazor template with global Auto-render mode. When the user first time visits the site, the response is rendered on the backend, I need to store user preferences in a cookie (language, etc) on change, but I can't create a cookie as an exception is thrown saying that the response already started, I assume that's because its SignalR call. After dotnet wasm runtime is loaded there are no issues, but the first request is an issue.
Is there any other way to set a cookie on a first request?
Beta Was this translation helpful? Give feedback.
All reactions