LearnBoost/socket.io — Issue #701: "Unspecified error" with Flashsocket over HTTPS
Author: DavidChouinard
Created: 2011-12-27 14:16:55+00:00
State: open

I'm running a Socket.io server over HTTPS. The Node.js server only has a JSON API, on which the main website opens a Socket.io connection with. The server is on http**s**://something.somethingelse.com, front-end is served from http(s)://somethingelse.com.

When using Flashsocket from an HTTP source to connect to the HTTPS server (ie. front-end is http://somethingelse.com), IE throws an "Unspecified error".

The line at fault is this one (in the `__flash__addCallback` function):

```javascript
return eval(instance.CallFunction("" + __flash__argumentsToXML(arguments,0) + ""));
```

And later, I get an `Access is denied` error.

Note the fairly narrow circumstances: this only occurs with Flashsocket when connecting from HTTP to HTTPS.

My hunch is that this is related to the Flash policy server. The policy file is served 10843 on HTTP (I didn't fiddle with this, using the default behaviour in Socket. io). Thoughts?

Note that this is unrelated to issue #476 (server-side "Uncaught, unspecified 'error' event.").