WebSocket on IE10 giving a SecurityError

It looks like IE throws a SecurityError if you’re trying to open a websocket on a local (intranet) domain. To overcome this, you may disable IE’s automatic algorithm for recognizing local sites. This can be done in Tools > Internet Options > Security > Local Intranet > Sites.

intranet detection settings

Uncheck all checkboxes (or only a particular one, if you know how exactly your domain did end up in intranet ones).

Note that IE uses (among other things) its proxy settings to determine local sites: if your domain is listed as excluded from proxying in proxy settings, then it will probably be treated as intranet one. This is why WebSockets work if you enable Fiddler: it modifies IE proxy settings and thus the list of intranet sites changes.

Leave a Comment