View Single Post
  #2 (permalink)  
Old August 9th, 2010, 06:50 AM
Iftah Iftah is offline
Registered User
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Ok turns out I misunderstood the javascript Same Origin Policy. It does not apply just to the server IP or domain, but also to the port.

I was running the javascript files with a simple python web server on one port and the xmpp server on the same machine but different port (of course).

The way to set it up is to make the web server proxy the requests of a certain url to the other server. As described here or here
I'll setup apache webserver and set it and see if I can finally play with the book examples with my own server.

When I tried running the Emite chat I did not run it with the python webserver but from within eclipse, and I guess they had their project setup to forward the url on the server side.