How to enable CORS in Asp.Net MVC5
问题 I am running Angular 6 in my local and getting CROS error when invoking MVC controller action method. I tried to fix this by adding below line of code in my .net application's web.config file. But still getting same error. <httpProtocol> <customHeaders> <clear /> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> </system.webServer> I do not want to run a browser by disabling web security also I do not want to create a class since only to run in my local I