开发者

how do i load the swfs through http so that the client browser can cache them and communicate with the server-side over https?

The client-side application is a Flex application and communicate with server-side java application using b开发者_JAVA百科lazeds. As you know, most browsers don't cache SWFs loaded over https, but i want load the swfs through http so that the client browser can cache them and communicate with the server-side over https? How can i achieve that?


You can't do this without generating a prompt for the user to allow for this content to load in some browsers. Doing this in general violates security of the https session.


You can communicate with BlazeDS securely regardless of how the Flex SWF was loaded into the broswer. It's entirely possible to embed your SWF in a web page laoded over http, then for that Flex application to communicate with BlazeDS securely.

The key concern is with BlazeDS. How your Flex SWF is loaded into the browser isnt important. Your Flex client needs to communicate with BlazeDS over a SecureAMFChannel. On the server side, you set up the Secure AMF channel to use either container based or custom authentication. The first time you use the channel, Blaze will send a response indicating the user needs to authenticate.

See this link for details. BlazeDS Developer Guide

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜