"TypeError: Failed to fetch" error
Tony20221 opened this issue · 1 comments
Tony20221 commented
I created a new project with the template, tried to log in using admin and got an error:
"TypeError: Failed to fetch".
Bizwiz-sg commented
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"
}
}