sockjs/sockjs-client — pull request #164 by georgeOsdDev (2014-04-24 06:37:25+00:00)
Title: Galaxy S4 cannot post cross domain message over HTTPS with XHR protocol

I found that, Galaxy S4 (Android 4.3) browser can not make cross domain HTTPS XMLHttpRequest with body, if `Content-Type` request header was not set. This PR fixes it.

---------------

More info:

I think the default browser of Galaxy S4 (Android 4.3) supports WebSocket, but in my case, some devices fallback to XHR.

When it uses XHR protocol, it always fails to post message `xhr.send(payload)` to cross domain server over HTTPS.

The request is terminated by the browser. Error `http status 0` is returned.

For more detail, see: https://github.com/georgeOsdDev/sockjs_cross_domain