Fixes secure WebSocket on HTTPs.