Commit dffcb18
chore(deps): Upgrading socket.io packages (#946)
BREAKING CHANGES: Previously the boardgame.io server accepted requests from any origin. After this change, you must set an `origins` argument when creating the server specifying the origins that are allowed to connect to your server. See the Server reference page for more details: https://boardgame.io/documentation/#/api/Server
* upgrading socket.io server and client packages as well the koa-socket-2 package
* Upgrades socketio types
* Fix unit test
* Adds origins param to the Server API and fix CORS issue
* Use socket.io typing for origins server option
* docs: Update origins documentation
* feat: Log explanatory warning if origins option is undefined
* docs: Fix link to MDN CORS documentation
* chore(deps): deep update `ws` to fix ReDoS vulnerability
* feat: Provide default origins configurations
* docs: Document use of provided origins configurations
* chore: Use origins config in examples server
Co-authored-by: Vinny <[email protected]>
Co-authored-by: vdf.dev <[email protected]>
Co-authored-by: delucis <[email protected]>1 parent dbba255 commit dffcb18
13 files changed
Lines changed: 415 additions & 271 deletions
File tree
- docs/documentation
- api
- examples/react-web
- packages
- src
- client/transport
- server
- transport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
23 | 48 | | |
24 | 49 | | |
25 | | - | |
| 50 | + | |
26 | 51 | | |
27 | 52 | | |
28 | | - | |
| 53 | + | |
29 | 54 | | |
30 | | - | |
| 55 | + | |
31 | 56 | | |
32 | | - | |
| 57 | + | |
33 | 58 | | |
34 | 59 | | |
35 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
213 | 218 | | |
214 | 219 | | |
215 | 220 | | |
216 | | - | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
223 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
224 | 235 | | |
225 | 236 | | |
226 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | | - | |
| 19 | + | |
17 | 20 | | |
0 commit comments