[whatwg] Enhancement request: change EventSource to allow cross-domain access
nzakas at yahoo-inc.com
Thu Jun 2 09:57:07 PDT 2011
I brought this up a while ago as well:
Echoing Ilya: this is actually a very important feature because generally you don't want long-lived connections (HTTP streaming) and short-lived connections (web page requests) going through the same hosts.
Commander Lock: "Dammit Morpheus, not everyone believes what you believe!"
Morpheus: "My beliefs do not require them to."
From: whatwg-bounces at lists.whatwg.org [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of ilya goberman
Sent: Wednesday, June 01, 2011 11:24 AM
To: whatwg at lists.whatwg.org
Subject: [whatwg] Enhancement request: change EventSource to allow cross-domain access
Can EventSource be enhanced to support cross-domain requests via "Access-Control-Allow-Origin" header, just like it is already done for XHR? See http://en.wikipedia.org/wiki/XMLHttpRequest#Cross-domain_requests.
I filed a request with WebKit bugzilla and they suggested to send it to you: https://bugs.webkit.org/show_bug.cgi?id=61862
The rationale and use cases are exactly the same as for XHR: it can be useful to access different domains.
Is support for EventSource cross domains planned at all? It is supposedly one of the most requested features, but I do not know how it is tracked.
More information about the whatwg