The simplest way to enable CORS for all endpoints is by adding a default CORS policy in the Startup class. The following code shows the two lines of code to add: Note: Put whatever CORS policy makes sense for you. In the code above, I am simply allowing everything. Test CORS locally To test this … Read more
The simplest way to add API documentation is to use Swagger. You can configure it to generate an API documentation page and even send requests to your endpoints. Here’s what it looks like: In this article I’ll show how to install and configure Swagger with the following features (shown in the image above): Generates an … Read more
Problem In IIS Manager, Windows Authentication is missing from the list of available authentication methods. Solution 1. Open Turn Windows features on or off. 2. Select the Windows Authentication feature and click OK. 3. Restart your computer. Once it reboots, you’ll see the Windows Authentication option in IIS.