Update CORS

This commit is contained in:
Sage Vaillancourt 2021-01-06 13:29:22 -05:00
parent 138670bb2e
commit 5a959bf4c8
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ const server = http.createServer(app);
const io = socketIo(server, { const io = socketIo(server, {
cors: { cors: {
cors: true, cors: true,
origins: ["http://192.168.1.7:3000"],
} }
}); });

View File

@ -7,7 +7,7 @@ import Board from './board';
import './index.css'; import './index.css';
const ENDPOINT = "http://localhost:4001"; const ENDPOINT = "http://localhost:5000";
class NameForm extends React.Component { class NameForm extends React.Component {
constructor(props) { constructor(props) {