For two documents to be considered to have the same origin, the protocol (http/https), the domain and the port (the default 80 or :xx) have to be indentical.
So no, you cannot use xhr against a different port.
More Related Contents:
- Same origin Policy and CORS (Cross-origin resource sharing)
- How to enable cross-domain request on the server?
- Cross-Domain AJAX doesn’t send X-Requested-With header
- Cross-Domain Requests with jQuery
- ‘No Transport’ Error w/ jQuery ajax call in IE
- Ajax Cross Domain Calls
- Enable CORS in Golang
- Who can explain this ajax code for me [closed]
- Keep p:dialog open when a validation error occurs after submit
- jQuery $.ajax(), $.post sending “OPTIONS” as REQUEST_METHOD in Firefox
- Getting “net::ERR_BLOCKED_BY_CLIENT” error on some AJAX calls
- Does an HTTP Status code of 0 have any meaning?
- CORS issue while making an Ajax request for oauth2 access token
- What values can I pass to the event attribute of the f:ajax tag?
- How to encode Doctrine entities to JSON in Symfony 2.0 AJAX application?
- Access denied in IE 10 and 11 when ajax target is localhost
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource- AngularJS
- Rendering other form by ajax causes its view state to be lost, how do I add this back?
- Set Headers with jQuery.ajax and JSONP?
- MVC5, AjaxHelper, and the Correct Scripts & Load Order
- How to set request header to the ajax object for jqGrid
- Extract part of HTML document in jQuery
- HTML5 Video is not working with AngularJS ng-src tag
- how does jquery’s promise method really work?
- Does Vue.JS work with AJAX http calls?
- Stop the browser “throbber of doom” while loading comet/server push iframe
- jQuery AJAX ‘multipart/form-data’ Not Sending Data?
- List of events
- ‘JSON’ is undefined error in IE only
- ICEfaces libary in classpath prevents Save As dialog from popping up on file download