Cross domain request
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 !
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.
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.
Unfortunately I do not know strophe library so I cannot help you with that. Perhaps Strophe developers would be able to help you instead.





Recent comments
10 hours 10 min ago
10 hours 15 min ago
4 days 5 hours ago
4 days 6 hours ago
4 days 14 hours ago
5 days 52 min ago
5 days 2 hours ago
5 days 2 hours ago
6 days 1 hour ago
6 days 4 hours ago