Help
Ask questions about how to do or fix things in Arrowchat
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 10 Jul 2013, 11:01

Hi, i have two domains on one server, www.domain1.com is on port 80 on IIS and www.domain2.com is on port 8080 on apache, arrowchat is installed on www.domain2.com, and works perfectly on that domain,

Problem is, i need arrowchat to work on a website on www.domain1.com, it shows the chat bar, but the users list is empty and it only shows Loading...

I have checked for the session to be properly set and it is, it even recieves messages, but it can't send messages. The debug page marks everything as OK.

I have set the base URL and header/footer to www.domain2.com.

Can anyone help me please?
User avatar
jliang
Customer
 
Posts: 14
Joined: 23 May 2013, 15:42

 

by jliang 24 Jul 2013, 14:53

You need to look into cross domain scripting....

By default each website is like a silo as far the web browser is concerned and you can't access session/cookie data between the domains.

Arrowchat does not work out of the box between different domains or even subdomains. You will need to have the origin server allow cross domain access, change all the javascripts server calls from ajax post to ajax get and from data type of json to jsonp and the php files need to return jsonp not json and look for GET vars not POST vars.

Its doable but not trivial .....
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 31 Jul 2013, 08:01

Thanks for you reply, i will try that and let you know
User avatar
CTrujillo
Customer
 
Posts: 6
Joined: 06 Mar 2014, 09:55

 

by CTrujillo 06 Mar 2014, 14:09

were you able to get this configured?
User avatar
SGreco
Customer
 
Posts: 8
Joined: 17 Nov 2014, 11:43

 

by SGreco 21 Nov 2014, 10:16

I am in the same scenario. Has anyone configured a solution for this.