如何在ASP.NET Core中启用CORS
我试图在我的ASP.NET核心Web API上启用跨源资源共享,但我被困住了。
该EnableCors属性接受policyName类型string为参数:
// Summary:
// Creates a new instance of the Microsoft.AspNetCore.Cors.Core.EnableCorsAttribute.
//
// Parameters:
// policyName:
// The name of the policy to be applied.
public EnableCorsAttribute(string policyName);
这policyName意味着什么以及如何在ASP.NET Core Web API上配置CORS?
当年话下
繁星coding
相关分类