The scenario is this:
- My html page is on http://www.mydomain.com/somepage.html
- Using jQuery, I call a webservice on: http://subdomain.mydomain.com/webservice.asmx/somemethod
At the moment this is not working. I suspect that the subdomain is breaking a x-browser restriction. Any ideas?
It is working locally when the html page and the webservice are running off my localhost.
Cheers.
In the same origin policy, the host must match exactly (so must the protocol and port, but that’s an aside). If a matching suffix could suffice,
foo.comwould be deemed the “same origin” asbar.com, orfie.co.ukthe same asflap.co.uk, etc, completely destroying the purpose of the policy.I realize you think of
www.blah.comas “more related” towhatever.blah.comthan the examples I gave, but that’s simply not the case – think of all the myriads ofsomething.appspot.comdomains running Google App Engine apps from myriads of different authors with absolutely no relationship among them, for example.