I am migrating my asp.net web api to asp.net core. Cors migration
<p>In my asp.net project i have defined cors in webapiconfig file like this</p>

<pre><code> public static class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            // New code
            var cors = new EnableCorsAttribute("*", "*", "*", "DataServiceVersion, MaxDataServiceVersion") { SupportsCredentials = true };
            config.EnableCors(cors);
</code></pre>

<p>Now I want to migrate it to asp.net core. How can it be done? Please help.</p>