I have met with a design problem of implementing additional CORS policy in my API. Before it, I just used this following code:
ConfigureServices:
services.