In fact, you can do this to implement your own custom response header for a request like this.
Response.AppendHeader("Access-Control-Allow-Origin", "*");
There are many ways to do this. You can only overcome. Are you viewing cross-domain access in wcf articles? A project has been implemented that uses a wcf service from wcf and wcf service nodes in a cross domain. You can use jsonp with webhttp binding. sample answer here;
Cross domain jQuery Ajax request and REST service for WCF
or you can implement this configuration:
<system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> </system.webServer>
For a better way to implement / enable corsa, please check enable-cors.org. I can easily find this link.
http://enable-cors.org/server_wcf.html
At least you can use jsonp instead of json. it's free, but itβs hard to do.
Interestingly, you hired him.
source share