Skip to content

Commit 8227192

Browse files
JonaMXdarrachequesne
authored andcommittedSep 20, 2019
[docs] Fix the default value of the 'origins' parameter (#3464)
Fix documentation about default origins value. The default should read `*:*` instead of `*
1 parent 1150eb5 commit 8227192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/API.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Exposed by `require('socket.io')`.
7878
- `path` _(String)_: name of the path to capture (`/socket.io`)
7979
- `serveClient` _(Boolean)_: whether to serve the client files (`true`)
8080
- `adapter` _(Adapter)_: the adapter to use. Defaults to an instance of the `Adapter` that ships with socket.io which is memory based. See [socket.io-adapter](https://github.com/socketio/socket.io-adapter)
81-
- `origins` _(String)_: the allowed origins (`*`)
81+
- `origins` _(String)_: the allowed origins (`*:*`)
8282
- `parser` _(Parser)_: the parser to use. Defaults to an instance of the `Parser` that ships with socket.io. See [socket.io-parser](https://github.com/socketio/socket.io-parser).
8383

8484
Works with and without `new`:

0 commit comments

Comments
 (0)
Please sign in to comment.