Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Migrating Web API 2 to ASP.NET CORE API - CORS

$
0
0

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?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>