当使用https时,swf不能在IE中工作 [英] swf not working in IE when using https
问题描述
- 在我的网站中,我有安全的文件(
/ mywebapp / secure
)和公共文件(
/ mywebapp / secure
之外的所有内容)。安全的文件通过https(端口8443)
- 的MP3播放器位于:
/mywebapp/swf/player.swf
(公共访问)。
- 我使用swfobject插入与JavaScript代码的MP3播放器的SWF对象到页面(swfobject是在:
/ mywebapp / js / swfobject .js
public access)。
- 使用该播放器的网页位于:
code>/mywebapp/secure/playerSample.html
- 的MP3播放器位于:
- mp3播放器从servlet
/ mywebapp / servlet / playlist $>获取一个带有列表的轨道(播放器请求列表) c code
当使用firefox浏览playerSample.html
时,好吧...我登录到我的webapp,访问playerSample.html
,播放器显示从/ mywebapp / servlet / playlist但是,当我浏览与IE浏览器的页面列表不会被检索:SI已经测试了代码的部分,它的工作原理,例如
。
, 一世f我只是从IE的窗口调用/ mywebapp / servlet / playlist,我可以从servlet获得xml曲目列表。和playerSample.html可以显示闪存MP3播放器。这是玩家不能得到从servlet的响应(或至少是这样的)。
为什么只是在IE上发生?我知道IE浏览器有时只是吮吸...但是,任何想法或解决方法?解决方案
尝试监视您的网络流量使用提琴手(www.fiddler2.com)确保启用HTTPS解密,并信任Fiddler根证书。
I'm using a flash mp3 player (www.premiumbeat.com) within my website (localhost:8084 - tomcat). This is my situation:
- In my site I have secure files (any file under
/mywebapp/secure
) and public files (everything outside/mywebapp/secure
). Secure files are served through https (port 8443) - the mp3 player is located at:
/mywebapp/swf/player.swf
(public access). - I'm using swfobject to insert with javascript code the mp3 player swf object into the page (swfobject is at:
/mywebapp/js/swfobject.js
public access). - The webpage that uses the player is located at:
/mywebapp/secure/playerSample.html
- The mp3 player gets a xml with list of tracks (the player request the list) from servlet
/mywebapp/servlet/playlist
When I browse playerSample.html
with firefox everything works just fine... I login into my webapp, access playerSample.html
and the player shows the list of tracks retrieved from /mywebapp/servlet/playlist
.
But when I browse the page with IE the list is not retrieved :S I have tested the code in parts and it works, for example, if I just call /mywebapp/servlet/playlist from a IE's window, I can get the xml track list from the servlet. And playerSample.html can show the flash mp3 player. It's the player which can't get the response from the servlet (or at least that's what looks like).
Why it's just happening on IE? I know IE sometimes just sucks... but, any ideas or work-arounds?
Try monitoring your network traffic using Fiddler (www.fiddler2.com) Be sure to enable HTTPS decryption, and trust the Fiddler root certificate.
这篇关于当使用https时,swf不能在IE中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!