Saya mencoba untuk mengaktifkan berbagi sumber daya lintas asal di ASP.NET Core Web API saya, tetapi saya buntu.
The EnableCorsatribut menerima policyNametipe stringsebagai parameter:
// 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);
Apa policyNamemaksudnya dan bagaimana saya bisa mengkonfigurasi CORS pada ASP.NET Core Web API?



