Is an AJAX call cross-domain if only the port is d

2019-04-19 19:54发布

问题:

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.