Working cross-domain from a trusted Silverlight application

In the previous recipe, we looked at the restrictions enforced by the Silverlight runtime when accessing services that do not live in the same domain as the Silverlight application. These are called cross-domain restrictions. To access a service that lives in another domain, a cross-domain policy file should be in place. If not, the service won't be accessed.

Silverlight 4 brings an exception to this rule. In this version, the notion of so-called trusted applications is added. A trusted application or an application with elevated permissions is similar to an out-of-browser application. However, it gets more permissions on the system. One of these permissions is accessing services in a ...

Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.