[whatwg] Enhancement request: change EventSource to allow cross-domain access

Nicholas Zakas nzakas at yahoo-inc.com
Thu Jun 2 09:57:07 PDT 2011


I brought this up a while ago as well:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-October/028868.html

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.

-Nicholas
 
______________________________________________
Commander Lock: "Dammit Morpheus, not everyone believes what you believe!"
Morpheus: "My beliefs do not require them to."

-----Original Message-----
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.
Thanks

 		 	   		  


More information about the whatwg mailing list