Making Cross-Domain Ajax Requests for a Data Service Revisited
A month ago I released the post
Making Cross-Domain Ajax
Requests for a Data Service.
The post is about a better
solution to the problem.
In my previous post, I mentioned the problem of making a cross-domain Ajax
requests to a service that isn’t located in the application domain. I also offered a
solution of creating a cross-domain proxy service that will act as an
intermediary between your application and the data service. A main problem in
that solution was the using a traditional SOAP-based WCF service as an interface
to a data service.
More Elegant Solution
Meanwhile, I found a post written by Tom Laird-McConnell about
creating an ADO.NET data service proxy as workaround for
Silverlight/ADO.NET cross domain issue which gives a solution to the
cross-domain problem of Silverlight with a chaining of data services.
I tried to impose the same solution with Ajax calls as well and it works
Lets sum up, I encourage you to read Tom’s post and to use his solution also
with Ajax calls to a cross-domain data services. I uploaded my previous
solution with Tom’s suggested solution. You can download it from here.