(Choose 1 answer)
How can you enable CORS using a named policy in ASP.NET Core Web API?
A. By configuring the policy in the ConfigureServices method of the Startup.cs file
B. By setting the allowed origins in the Authorization header of the request
C. By adding the policy configuration in the appsettings.json file
D. By applying the [EnableCors] attribute with the policy name
Q: 30