I have developed asp.net web form application and I have need to call cross domain handler, so for that I have need to 'Enable CORS', but I have no idea about that. I have used 'Enable CORS' with mvc, but not with web form applications,please provide proper suggestion. Thank you in advance
Asked
Active
Viewed 2,643 times
1
-
Here's your answer http://stackoverflow.com/questions/35627648/cors-endpoints-on-asp-net-webforms-webmethod-endpoints – Marcus Höglund Sep 14 '16 at 05:40
1 Answers
0
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Methods" values="*" />
<add name="Access-Control-Allow-Headers" values="Content-Type" />
</customHeaders>
<httpProtocol>
Write this code in web.config file at the root of your application.

LateshtClick.com
- 606
- 4
- 5
-
thanks for your reply. I have set up configuration as per your suggestion, but when I have set authentication mode is Forms in config file then its not working. `
` Please give me suggestion – kapil darji Sep 14 '16 at 08:39