diff options
Diffstat (limited to 'src/server/index.js')
-rw-r--r-- | src/server/index.js | 8 |
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"] } |