WEB开发网
开发学院图形图像Flash 谈谈Silverlight的一个跨域安全考虑 阅读

谈谈Silverlight的一个跨域安全考虑

 2008-11-24 11:53:04 来源:WEB开发网   
核心提示:在文档中看到Silverlight在设计的时候对网络安全方面做了很多考虑,但由于本人对安全方面并不是特别懂,谈谈Silverlight的一个跨域安全考虑,所以看得挺模糊的,最近和同事黄讨论了其中一些点,得到一些结论,和大家分享一下

在文档中看到Silverlight在设计的时候对网络安全方面做了很多考虑。但由于本人对安全方面并不是特别懂,所以看得挺模糊的。最近和同事黄讨论了其中一些点,得到一些结论,和大家分享一下。

在文档中有这么一段话:

There are important security considerations before you allow Silverlight clients to access Web services in a cross-domain situation. Whenever you put a cross-domain policy file in place you should configure your Web server hosting the Web services to disable browser caching. This enables you to easily update the file or restrict access to your Web services if necessary. Once the cross-domain policy file is checked, it remains in effect for the browser session so the impact of non-caching to the end-user is minimal.

In addition, all Silverlight requests are sent with cookies and authentication. This means that if you have Web services that allow users to access private information, you should host these in a different domain than the Web services exposed to third-party callers. For example, you have a Web store hosted at http://www.tailspintoys.com. Your site allows customers to store billing information that includes credit card numbers. You should not expose a Web service that returns product inventory to third-party Silverlight clients at the same domain. Because cookies and authentication are sent with each message, if you host these Web services on the same domain, you have effectively given the third-party callers access to your customer's private billing information. In this example, your publicly exposed Web services could safely be hosted at http://services.tailspintoys.com, because this is a different domain. You must carefully consider who you have exposed Web services to, and what other Web services are located at that domain. Also, you should always keep your cross-domain policy file as restrictive as possible. For more information about exposing secure Web services, see Security Considerations for Service Access and Making a Service Available Across Domain Boundaries.

1 2 3  下一页

Tags:谈谈 Silverlight 一个

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接