Part I of this post talked about authenticating a user in an Angular Single Page Application and fetching the id_token. The app still needs to be integrated with the Web API. The following changes are required in order to make the Web API accept and use the JSON Web Token. The Angular Single Page Application …
Category: Web API
Application Settings in .NET Core 2.0
Accessing application settings in ASP.NET Core is different from .NET Standard. There is no web.config file. Instead, we have the appsettings.json file. You can add multiple JSON configuration files and load them when the application starts. In my Service Desk Web API, I need to store and retrieve the configuration settings for an Azure Storage …
Enabling CORS in .NET Core 2.0
I built a Service Desk application in Angular with a Web API backend. The front-end application and the Web API are hosted in the same domain but under different port numbers. Browsers by default block requests from different origins for security reasons.What is "same origin"? Two URLs have the same origin if they have identical …