According to MDN:

Note: Although it's not yet part of the standard, EventSource supports CORS in Firefox 11 and later. This is expected to become standard soon.

Does anybody know the current status of this? Is this still true? What about Chrome?

有帮助吗?

解决方案

I did some experiments, and as it seems, server-sent events do work on current versions of Chrome, Firefox and Safari out of the box with CORS :-).

I did not test Opera, and I did not test Internet Explorer (which, according to CanIUse) is not capable of server-sent events.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top