blazor-wasm-boilerplate icon indicating copy to clipboard operation
blazor-wasm-boilerplate copied to clipboard

"TypeError: Failed to fetch" error

Open Tony20221 opened this issue 2 years ago • 1 comments

I created a new project with the template, tried to log in using admin and got an error: "TypeError: Failed to fetch".

Tony20221 avatar May 08 '23 04:05 Tony20221

likely u Host WedAPI not listening on port https port 5001 try Client\wwwroot\appsettings.json "ApiBaseUrl": "http://localhost:5000/",

{ //"ApiBaseUrl": "https://localhost:5001/", "ApiBaseUrl": "http://localhost:5000/", "AuthProvider": "Jwt", "AzureAd": { "Authority": "https://login.microsoftonline.com/organizations", "ClientId": "<Client (Application) Id of your client app registered in Azure>", "ValidateAuthority": true, "ApiScope": "api://<Client (Application) Id of you server app registered in Azure>/access_as_user" } }

Bizwiz-sg avatar Jul 26 '23 08:07 Bizwiz-sg