I am trying to use ngrok to access my Blazor WebAssembly application, but I am unable to login.
There was an error trying to log you in: 'Network Error'
Inspecting the calls I noticed that he tries to access the Url: http://localhost/.well-known/openid-configuration instead http://abcdefgh.ngrok.io/.well-known/openid-configuration
Is there any way to fix this via boot parameters?
You need to update your
Progam.cs
file and set theHttpClient.BaseAddress
to use the proper URI.Using Blazor WASM standalone:
OR, if you are using Blazor-hosted WASM: