I have frontend app wrote in Angular on localhost:4200 and backend in C#, .NET Core on localhost:5001. I had problem with 404 errors and solution is below. It is resolving my two problems, one to gets data from my controllers and second to repair auth functionality.
GET http://localhost:4200/_configuration/* 404 (Not Found)
e.g.:
GET http://localhost:4200/_configuration/crypto-web-app 404 (Not Found)

I list files and changes in them:
api-authorization/api-authorization.constants.ts (applicationPaths)
// ApiAuthorizationClientConfigurationUrl: `/_configuration/${ApplicationName}`,
ApiAuthorizationClientConfigurationUrl: `https://localhost:5001/_configuration/${ApplicationName}`,
// IdentityRegisterPath: '/Identity/Account/Register',
// IdentityManagePath: '/Identity/Account/Manage'
IdentityRegisterPath: 'https://localhost:5001/Identity/Account/Register',
IdentityManagePath: 'https://localhost:5001/Identity/Account/Manage'
So first change from:
‘/_configuration/${ApplicationName’
to:
‘https://localhost:5001/_configuration/${ApplicationName}’
And second change from:
IdentityRegisterPath: ‘/Identity/Account/Register’,
IdentityManagePath: ‘/Identity/Account/Manage’
to:
IdentityRegisterPath: ‘https://localhost:5001/Identity/Account/Register`,
IdentityManagePath: ‘https://localhost:5001/Identity/Account/Manage`
api-authorization/login/login.component.ts
// const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;
const redirectUrl = `${apiAuthorizationPath}`;
Change from:
‘${window.location.origin}${apiAuthorizationPath}’
to:
‘${apiAuthorizationPath}’