你的位置: 码友网首页 / 资讯源列表 / .NET 5.0 API - Allow CORS requests from any origin and with credentials

关于[.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().

原文地址: https://jasonwatmore.com/post/2021/05/26/net-5-api-allow-cors-requests-from-any-origin-and-with-credentials

收录时间: 2021-05-27 浏览量: 1437 分类: .NET 5

| 0 收藏 | 0