ASP.NET Core 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平均してどのように私は設定できCORSを ASP.NETコアのWeb APIに?



