Skip to content

Commit

Permalink
fix(websocket): default allow origin
Browse files Browse the repository at this point in the history
  • Loading branch information
tarotlwei committed Jul 24, 2018
1 parent e2486a8 commit 447cd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/proxy/webSocketServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class webSocketServer extends WebSocket.Server {
if (obj.host !== host) {
const allowWebSocketOriginHost = config.allowWebSocketOriginHost || [];
if (allowWebSocketOriginHost.length === 0) {
abortConnection(socket, 403);
super.handleUpgrade(req, socket, head, cb);
return;
}

Expand Down

0 comments on commit 447cd38

Please sign in to comment.