Tutorial built with ASP.NET Core 3.1

This is a quick post to show how to configure an ASP.NET Core API to allow CORS requests from any origin as well as with credentials.

I ran into the below error after setting withCredentials: true for CORS requests sent from an Angular app to a .NET Core API running on a different domain, and configuring CORS on the API to .AllowAnyOrigin() and .AllowCredentials().

#asp-net #api #web-development #programming #developer

How to Configure an ASP.NET Core API to allow CORS Requests from any Origin with Credentials
5.15 GEEK