Ticket #6873 (closed bug: duplicate)
Incorrect cross-site XHR detecting
|Reported by:||oryol||Owned by:|
Following code may work incorrect for default (80) http port: var parts = rurl.exec( s.url ),
For example IE9 (Preview 4) returns default port in window.location.host (for example - 'localhost:80'). Even more - if we send XHR to ' http://some-host:80/some-path', then jQuery will detect it as remote query (which is wrong).
We need to check for both hosts (parts and location.host) that them contains (or not) port. If not - add default 80.