Within my Web API 2 solution the CORS Policy is implemented via the CORS policy provider factory (detailed in this article https://msdn.microsoft.com/en-us/magazine/dn532203.aspx) the CORS policy is generated by reading the setup from a database by the request Origin.
Having looked at the ASP.NET CORE article https://docs.asp.net/en/latest/security/cors.html, I have followed this and have implemented this (in ConfigureServices and Configure), but there appears to be no similar way of doing this in the manner that I have in my Web API 2 solution.
How would I achieve this?