Home
Manage Your Code
Snippet: Enable Cross domain scripting in web config (ASP.NET)
Title: Enable Cross domain scripting in web config Language: ASP.NET
Description: This snippet will enable cross site scripting in your asp.net application. Just put the snippet in the web.config file. If you want to allow specific sites only just replace the star with the web site address. Views: 1041
Author: Kumanan Murugesan Date Added: 7/15/2012
Copy Code  
 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
        <httpProtocol>
            <customHeaders>
                <add name="Access-Control-Allow-Origin" value="*" />
            </customHeaders>
        </httpProtocol>
  </system.webServer>