문제

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