Bug 96368 - EventSource - unable to use any port other than 80
Summary: EventSource - unable to use any port other than 80
Status: RESOLVED DUPLICATE of bug 61862
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 02:25 PDT by Allan Jardine
Modified: 2012-09-11 11:01 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Jardine 2012-09-11 02:25:42 PDT
If I attempt to create an EventSource connection to anything other than port 80 I get a security exception. For example:

new EventSource('http://192.168.1.11:65411/');
> 11550SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent

However, if I try to open a WebSocket on that same port, it works absolutely fine. Additionally, Firefox allows non-port 80 EventSources.

Perhaps there is a reason why only port 80 is allowed for EventSource, but it seems odd that WebSocket is allowed, while EventSource is not.
Comment 1 Alexey Proskuryakov 2012-09-11 11:01:49 PDT
It's a known limitation, WebKit only supports same origin requests with EventSource.

*** This bug has been marked as a duplicate of bug 61862 ***