I have a api method, where it will give some result based on that result I have to conclude whether i have to send the response to the request or not. For that i need to enable CORS at runtime in c#. For each request it should enable or disable CORS . Is this scenario possible in c#? I have a api method, where it will give some re