aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-01 02:34:59 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-08-01 02:34:59 +0530
commitb8babd592b60b1a2cfedac3956184207a3d4bb8d (patch)
tree3aa3f708e3f3c6b7d804ecdc53c4fce755853c91 /src/server/index.js
parent1a40b90e29dc61ed28ad251b49e9175a2215c3d0 (diff)
created menu entry to enter join code
Diffstat (limited to 'src/server/index.js')
-rw-r--r--src/server/index.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/index.js b/src/server/index.js
index 5eeff99..a5aa97f 100644
--- a/src/server/index.js
+++ b/src/server/index.js
@@ -3,10 +3,14 @@ const app = express();
const http = require('http').Server(app);
const path = require('path');
-// const io = require('socket.io')(http);
const io = require("socket.io")(http, {
cors: {
- origin: ["http://localhost:5000", "http://localhost:3000"],
+ origin: [
+ "http://localhost:5000",
+ "http://localhost:3000",
+ "https://mikunonaka-tic-tac-toe.herokuapp.com",
+ "http://mikunonaka-tic-tac-toe.herokuapp.com"
+ ],
"Access-Control-Allow-Origin": "*",
methods: ["GET", "POST"]
}