Because of this: http://en.wikipedia.org/wiki/Same_origin_policy
Note that flxhr isn't required. It's an optional plugin. It's mostly
used for people to have an easy way to get started where they don't
have to proxy their BOSH service or have to worry about whether the
browser or the server supports Cross-Origin Resource Sharing (CORS).
Natively, Strophe.js uses XMLHttpRequest just like jQuery does.
jack.
Hi Jack,
is there any resource listing which browser versions support CORS and
how to enable CORS togheter with strophe?
federico
--
Federico Di Gregorio f...@initd.org
Datemi uno spigolo. Che lo arrotondo tutto. -- <dani>
CORS needs no special code (except on IE), just some extra headers on
the server side. I think all the XMPP tools support CORS now except
for Openfire.
Firefox 3.5 and later, safari (including mobile safari) and chrome for
the past year or so (probably opera too, but I haven't checked). IE8
supports it via a special XDomain object, which strophe does not yet
have support for.
I just found out about this site the other day:
http://enable-cors.org/ It seems to have more information on CORS in
general.
jack.
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To view this discussion on the web visit https://groups.google.com/d/msg/strophe/-/OvJ2hWpV4GAJ.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/strophe?hl=en.
To unsubscribe from this group, send email to strophe+unsubscribe@googlegroups.com.
jack.
--
You received this message because you are subscribed to the Google Groups "Strophe" group.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.