A
A
avalak2012-09-10 22:43:26
JavaScript
avalak, 2012-09-10 22:43:26

Server-Sent Events CORS in Chrome?

Decided to play around with Server-Sent Events (sse).
http://sse.localhost:3000/ - echo Node/Coffee server
http://localhost/ - static (connects to the echo server and writes to the event console)

In Firefox 15 / Opera 12, everything works like clockwork (this is what I found out when I got tired of looking for an error in chrome).
In Chrome 20, I immediately get Uncaught Error: SECURITY_ERR: DOM Exception 18

Access-Control-Allow-Origin without flirting. Specified
localhost/ this is not file:/// => should not swear.
In two fresh browsers everything works fine.

Apparently I'm missing some important point / my eyes are blurry. How to overcome?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav, 2012-09-11
@avalak

However, it still shouldn't work.
bugs.webkit.org/show_bug.cgi?id=61862

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question