You need to be logged in to post in the forums. If you do not have an account, please sign up first.
Cross domain AJAX in Opera
Hi,I haven't found any good information on cross-domain AJAX requests in Opera. The only article i found (actually written for widgets : http://dev.opera.com/articles/view/opera-widgets-and-ajax-connecting-to-mu/) basically explains that one can't do cross-domain requests due to the same-origin policy.
That isn't that true any more, one can do true cross-domain requests (POST requests for example, not the script tag hack) in IE7, IE8, Firefox and Chrome (haven't tested Safari but i think it will be okay too).
As Opera has the reputation of always being up to date on technologies and W3C standards i'm hoping i just missed out on something to get cross domain requests working.
My server has the Allow cross origin header set so that's not the problem.
I've noticed that contrary to the other browsers, Cometd switches to the script tag hack on Opera instead of true cross domain requests.
Are cross domain requests unsupported in Opera (version 10.51) or did I just forget something ?
Thanks for your help.
Originally posted by neuronix:
Hi,
I haven't found any good information on cross-domain AJAX requests in Opera. The only article i found (actually written for widgets : http://dev.opera.com/articles/view/opera-widgets-and-ajax-connecting-to-mu/) basically explains that one can't do cross-domain requests due to the same-origin policy.
That isn't that true any more, one can do true cross-domain requests (POST requests for example, not the script tag hack) in IE7, IE8, Firefox and Chrome (haven't tested Safari but i think it will be okay too).
As Opera has the reputation of always being up to date on technologies and W3C standards i'm hoping i just missed out on something to get cross domain requests working.
My server has the Allow cross origin header set so that's not the problem.
I've noticed that contrary to the other browsers, Cometd switches to the script tag hack on Opera instead of true cross domain requests.
Are cross domain requests unsupported in Opera (version 10.51) or did I just forget something ?
Thanks for your help.
