0

I have an xmpp server (Openfire) in my local PC. I made a javascript chat client on my hosted website that is connecting to my openfire server. So this is a live chat support. It works perfectly in every browser except all versions of Internet Explorer. I got the following error: Can't find "http://www.heavenlypictures.hu" origin in Access-Control-Allow-Origin header. In openfire I enabled access from all domains, and I have the following cross domain policy:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*" to-ports="5222,5223,7070,7443" secure="true"/>
</cross-domain-policy>

I'm using JQUERY post and AJAX requests for connect to the xmpp server.

What is the problem? Why IE can't access?

You can try it here: http://www.heavenlypictures.hu/contact/chat/chat.php

4

1 回答 1

1

它是否适用于最终支持CORS的 IE10?如果是这样,您的问题是您需要在 IE8 和 IE9 上使用XDomainRequest 。

此外,请检查以确保您的 BOSH、JavaScript 和 HTML URL 都是 HTTPS 或所有 HTTP,而不是混合。IE10 对许多其他浏览器没有的同源强制执行此操作。

于 2013-08-13T03:40:38.933 回答