Skip to content

Commit 38c0de5

Browse files
committed
specify allowed origins list is comma-separated
1 parent 7415f47 commit 38c0de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sending-commands/websocket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ With `WEBSOCKET_CONSOLE` set to `true`, logs can be streamed, and commands sent,
88
A password must be supplied using the `Sec-WebSocket-Protocol` header. This is done by putting `mc-server-runner-ws-v1` in the first slot, and the password in the second. The password can be set with `RCON_PASSWORD` or `WEBSOCKET_PASSWORD`. The latter overwrites the former. Authentication can be disabled with `WEBSOCKET_DISABLE_AUTHENTICATION`.
99

1010
## Allowed origins
11-
A list of allowed origins should be supplied with `WEBSOCKET_ALLOWED_ORIGINS`. Origin checking can be disabled with `WEBSOCKET_DISABLE_ORIGIN_CHECK`.
11+
A list of comma-separated allowed origins should be supplied with `WEBSOCKET_ALLOWED_ORIGINS`. Origin checking can be disabled with `WEBSOCKET_DISABLE_ORIGIN_CHECK`.
1212

1313
## Listen address
1414
The listen address and port can be set with `WEBSOCKET_ADDRESS` (defaults to `0.0.0.0:80`), but it's recommended to listen on all interfaces when running in Docker.

0 commit comments

Comments
 (0)