Project

General

Profile

Bosh Access-Control-Allow-Origin Error

Wenjun Che
Added over 5 years ago

Hello

We are getting the following error when our client tries to connect through BOSH:

XMLHttpRequest cannot load http://our_tigase_server:5280/xmpp-httpbind/. Origin http://chat.openf.in is not allowed by Access-Control-Allow-Origin.

Here are the config files for Tigase server.

bosh-extra-headers.txt:

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, POST, OPTIONS

Access-Control-Allow-Headers: Content-Type

Access-Control-Max-Age: 86400

cross-domain-policy.xml:

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

Are we missing anything?

Thanks


Replies (2)

Added by Wenjun Che over 5 years ago

Here is more info: we are using version Tigase Bosh/5.1.5-b3164.

The issue seems to be related to BUG #517: BOSH - Cross-Domain policy support for OPTIONS method. HTTP OPTIONS request does not get any response back. Is the fix in version 5.1.5?

Thanks

Added by Wenjun Che over 5 years ago

I upgraded to 5.2 and it is working now. So, I guess the fix is not in 5.1.5.

    (1-2/2)