Silverlight 2 tutorial (10): Silverlight 2.0 URL Access Policy

Source: Internet
Author: User

 

For security reasons and other security threats, such as passing cookies and allowing address redirection, Silverlight restricts cross-security region, cross-origin, and cross-Protocol URL access. For example, if your Silverlight program is embedded in a domain and you attempt to use a WebClient object to access files stored in another domain, the request will fail, in addition, this error prompt is not an accurate prompt for this error. If you want Cross-origin access, you need to configure files such as clientaccesspolicy. xml or crossdomain. xml.

The following table lists URL access rules in Silverlight 2.0:

  WebClient object Media, images, ASX XAML files and font files Streaming Media
Protocols allowed HTTP and https HTTP, https, file HTTP, https, file HTTP
Cross-protocol access Not Allowed Not Allowed Not Allowed Access from HTTPS is not allowed
Cross-web domain access Not Allowed If it is not from https, allow Not Allowed Allow
Cross-security region access (Windows) Not Allowed Not Allowed Not Allowed Not Allowed
Cross-security region access (Macintosh) Not Allowed Allow Not Allowed Allow
Redirect allowed Same Domain Allowed Allow Same Domain Allowed Not Allowed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.