ADO.NET Data Services / Silverlight Cross Domain Access
One of the issues I was hoping to see fixed in RTM of the Silverlight client for ADO.NET Data Services was the cross domain access. From the response to this forum post here it looks like that won’t be in the RTM bits either.
One thing you can do as a work around is move the code for your data service to a class library then in the Silverlight hosting web project simply create a shell data service that inherits from the one in your common class library.
This doesn’t solve the problem if you don’t control the data service you are trying to consume at that point your only option appears at this point to be to use HttpWebRequest.
References (1)
References allow you to track sources for this article, as well as articles that were written in response to this article.
-
Response: domain name transfersHTML 5 allows connections across domains, through use of the Access- Control HTTP header, as defined in a separate W3C specification (which applies identically to normal XHR usage and to server- sent events). A request is made for a resource as usual, but if that resource on the server (in this ...
Reader Comments