Fixed hardcoded protocol in sse origin check
Merge pull request #898 from beise/master

Get protocol from window.location for sse origin check.