RESOLVED DUPLICATE of bug 61862 96368
EventSource - unable to use any port other than 80
https://bugs.webkit.org/show_bug.cgi?id=96368
Summary EventSource - unable to use any port other than 80
Allan Jardine
Reported 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.
Attachments
Alexey Proskuryakov
Comment 1 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 ***
Note You need to log in before you can comment on or make changes to this bug.