From 5a959bf4c8e2e7e57918e822799e73b684a1f30f Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 6 Jan 2021 13:29:22 -0500 Subject: [PATCH] Update CORS --- server.js | 1 - src/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server.js b/server.js index a6fc029..5abfd56 100644 --- a/server.js +++ b/server.js @@ -13,7 +13,6 @@ const server = http.createServer(app); const io = socketIo(server, { cors: { cors: true, - origins: ["http://192.168.1.7:3000"], } }); diff --git a/src/index.js b/src/index.js index ba5318f..21f7607 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ import Board from './board'; import './index.css'; -const ENDPOINT = "http://localhost:4001"; +const ENDPOINT = "http://localhost:5000"; class NameForm extends React.Component { constructor(props) {