fullstackhero / blazor-wasm-boilerplate

Clean Architecture Boilerplate Template for .NET 6.0 Blazor WebAssembly built for FSH WebAPI with the goodness of MudBlazor Components.

Home Page:https://fullstackhero.net/blazor-webassembly-boilerplate/general/getting-started/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"TypeError: Failed to fetch" error

Tony20221 opened this issue · comments

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

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"
}
}