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