I'm running an Openfire XMPP server on a virtual hosting service. When I sent an XmlHttpRequest to that server by Javascript, I got the error from Chrome's dev console:
"XMLHttpRequest cannot load http://myxmppsite.com:9090/plugins/userService/userservice?type=add&secret=3VC72j0t&username=kafka&password=drowssap&name=franz&email=franz@kafka.com. Origin http://myanothersite.com is not allowed by Access-Control-Allow-Origin."
But when I browsed to the url directly from Chrome, it worked normally.
I googled some stuffs and modified the xmpp server's cross-domain-policy to allow requests and request headers from myanothersite.com but it still didn't work.
How can I edit the Access-Control-Allow-Origin (whatever it is) so that I can allow myxmppsite.com to accept requests from myanothersite.com?
Thanks in advance.