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
the request is sent via this websocket.
In "wasm" mode the same request is sent via regular HTTP request.
How to force it to always use regular HTTP requests? I know I can create a HttpClient and do it myself but I'd like to use record types as in the example.
The problem is that in "server" mode you can't set cookie in signIn: httpContext.SignInAsync(principal) throws InvalidOperationException("Headers are read-only, response has already started.") because it tries to modify headers of an ongoing response. Even the standard Bolero template doesn't work in "wasm" mode
The text was updated successfully, but these errors were encountered:
@OnurGumus thanks, I considered using JWT but cookie and built-in auth middleware seemed easier because I didn't need to add almost anything to the client, only server side. I will poke around a bit and maybe switch to JWT too.
Anyway it's still an issue that the standard bolero template doesn't work in server mode, not nice to newcomers
When Bolero works in "server" mode there is a websocket connection and whenever I define a service
the request is sent via this websocket.
In "wasm" mode the same request is sent via regular HTTP request.
How to force it to always use regular HTTP requests? I know I can create a HttpClient and do it myself but I'd like to use record types as in the example.
The problem is that in "server" mode you can't set cookie in signIn:
httpContext.SignInAsync(principal)
throwsInvalidOperationException("Headers are read-only, response has already started.")
because it tries to modify headers of an ongoing response. Even the standard Bolero template doesn't work in "wasm" modeThe text was updated successfully, but these errors were encountered: