cannot load http://127.0.0.1:7070/http-bind/

1,055 views
Skip to first unread message

invincible015

unread,
Mar 30, 2013, 3:13:06 AM3/30/13
to str...@googlegroups.com
What is the cause of this error:

XMLHttpRequest cannot load http://127.0.0.1:7070/http-bind/. Origin http://localhost is not allowed by Access-Control-Allow-Origin.

??? I am working with openfire server.

Vineet Naik

unread,
Mar 30, 2013, 3:33:05 AM3/30/13
to str...@googlegroups.com
Hi, 

This is because of the cross domain request from domain 'localhost' to '127.0.0.1:7070' which is restricted
by browsers for security reasons.[1]

You can get around this by setting up reverse proxy that will forward the requests at http://localhost/http-bind
to http://127.0.0.1:7070/http-bind. If you are using apache2, check mod_proxy[2]

Also check if Openfire supports CORS[3]. I haven't worked with Openfire since some time and 
at that time it didn't support it, but that might have changed now. 





--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strophe+u...@googlegroups.com.
To post to this group, send email to str...@googlegroups.com.
Visit this group at http://groups.google.com/group/strophe?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Vineet Naik

Reply all
Reply to author
Forward
0 new messages