Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 5c2701a

Browse files
authored
Upgrade socket.io to 2.4.0 and add configuration for cors. (#33)
7080 is the default port of development server for JavaScript SDK, so it's in the allowed list.
1 parent acccdc9 commit 5c2701a

File tree

5 files changed

+237
-247
lines changed

5 files changed

+237
-247
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Install node dependencies by running following command in root directory of P2P
1010
npm install
1111
```
1212

13+
### Cross-Origin Resource Sharing
14+
P2P server may be deployed in a different origin than the web pages. In this case, Cross-Origin Resource Sharing (CORS) is used to indicate which origins are allowed. Please add allowed origins to `config.json`.
15+
1316
### SSL/TLS
1417
The default plain port is 8095, and the default secure port is 8096. These default values can be modified in the file `config.json`.
1518

0 commit comments

Comments
 (0)