title: How do you enable cross-origin requests (CORS) in ASP.NET Core MVC
body: <p>I'd like to enable CORS on an API built with ASP.NET Core MVC, but all the current documents refer to earlier versions of that framework.</p>