Fixing cross-origin websocket requests