问题
The main page is www.myserver.com:80 and the ajax references www.myserver.com:8081.
The status code is 0 and the text is null. Is this a cross domain denial?
回答1:
Yes, this violates the same origin policy.
回答2:
Yeah, different port is also considered as a cross domain call. Please refer here.
来源:https://stackoverflow.com/questions/3087215/is-an-ajax-call-cross-domain-if-only-the-port-is-different