Cross domain request

3 replies [Last post]
Anonymous

Hi all !

Does tigase support cross domain request?

i know that when an application access to tigase server with other host, the server have to give permission by cross-domain.xml. But with tigase, when i access from other host, tigase doesn't return cross-domain permission.
I know that we can use proxy to solve this problem, but in my case, i don't want to use proxy for cross domain access.

Can anybody help me !

Thanks !

kobit's picture
Offline
Joined: 2006-09-03
Points: 267814

If Tigase receives <policy-file-request/> XML element as the first request sent over Bosh connection it responds with a content of configured cross-domain-policy.xml fie.

redwind (not verified)

Thank for your help !

But can you show me how to implement this in client using strophe library.
I tried create new connection, then send a like this:

chat.connection = new Strophe.Connection('http://chat.redwind.com:5280/xmpp-httpbind');
chat.connection.send($build('policy-file-request'))

But it's not working :), because i should send policy-file-request before all request from client.
strophe use flxhr plugin for cross request and default flxhr plugin request to http://chat.redwind.com/cross-domain.xml for first cross request and i don't know how to modify this plugin for first request.

kobit's picture
Offline
Joined: 2006-09-03
Points: 267814

Unfortunately I do not know strophe library so I cannot help you with that. Perhaps Strophe developers would be able to help you instead.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.