关于[.NET 5.0 API - Allow CORS requests from any origin and with credentials]的摘要:
This is a quick post to show how to configure a .NET 5.0 API to allow CORS requests from any origin as well as with credentials. I received the following error after setting credentials: 'include' for CORS requests sent from a React app to a .NET 5.0 API running on a different domain, and configuring CORS on the API to .AllowAnyOrigin() and .AllowCredentials().