When we try to make an AJAX call to a web service that is
hosted on a different domain, we get an Access Denied exception on the client side
JavaScript. This error is due to the Same Origin Policy
that the browsers implement to prevent Cross-Domain requests (XDRs).
To address this problem with a WCF service, we can add the
following settings to the Web.config file:
<system.webServer>
<httpProtocol>
<customHeaders>
<add...