I would like CORS to be enabled if I build a project using the development settings, and disabled if I use the production settings.
So far I have found you can have different config files based on this answer
What I am confused about is how I would apply this for cors
Basically I would want a Web.Debug.Config with cors enabled so something like so
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
And then Would I just not add in these Headers in the web.Release.Config?