Update CORS
This commit is contained in:
parent
138670bb2e
commit
5a959bf4c8
|
@ -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"],
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue