Apache flex Flex不希望使用指定的https
我有一个小swf,当网页使用https/ssl时,我正在尝试使用它。我正在向swf传递一个事实,即页面正在使用https,并且具有条件逻辑:Apache flex Flex不希望使用指定的https,apache-flex,actionscript,coldfusion,blazeds,Apache Flex,Actionscript,Coldfusion,Blazeds,我有一个小swf,当网页使用https/ssl时,我正在尝试使用它。我正在向swf传递一个事实,即页面正在使用https,并且具有条件逻辑: if ( secure ) { pollChannel = new AMFChannel('my-secure-polling-amf','https://' + globalDomain + '/flex2gateway/cfamfpollingsecure'); } else { pollChannel
if ( secure ) {
pollChannel = new AMFChannel('my-secure-polling-amf','https://' + globalDomain + '/flex2gateway/cfamfpollingsecure');
}
else {
pollChannel = new AMFChannel('cf-polling-amf','http://' + globalDomain + '/flex2gateway/cfamfpolling');
}
当页面是http时,它使用正确的端点没有问题。当secure==true时,无论出于何种原因,浏览器都会报告其正在使用,而不是https
有人知道为什么吗???我不明白为什么它会这样自我调整
非常感谢您的帮助 幸运的是,我上周遇到了完全相同的神秘问题,而且修复非常简单(一旦你知道要去哪里查找,也就是说,我已经在源代码中挖掘了一段时间来找出它): 您只需使用而不是常规的
AMFChannel