- Without parsing ports we can sometimes determine that we're
CrossDomain when we really aren't. This happens in the case that the
user sets $.connection.hub.url to "http://foo.com:80/signalr". In
window.location.host it doesn't pick up port 80 but if we create a
hyperlink to this url its host object will have port 80 listed.
…orts if they do not exist
- These added ports are not reflected in the URL itself, they are purely
used for comparison purposes.
- With this approach this does not special case port 80 and port 443