I followed this doc: asp.net core web api and this doc for the SPA
However, when trying to make a web api call from my angular application (with the [authorize] attribute set) I receive the following error message in the console log:
Access to XMLHttpRequest at 'http://localhost/api/getcustomer' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I'm able to successfully login to azure AD. However the Authorization header is missing from my api calls. I'm running the SPA in node/express. asp.net-core is backend.
I didn't create a separate app registration for the api. I did select, however to expose the api and created a scope.
401 is the status code: Not authorized.