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
Does it work on IE10, where CORS is finally supported? If so, your problem is that you need to use XDomainRequest on IE8 and IE9.
Also, check to make sure your BOSH, JavaScript, and HTML URLs are all HTTPS or all HTTP, not a mix. IE10 enforces this for same-origin where many other browsers don't.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다