Last commit ?
This commit is contained in:
parent
75060a0997
commit
34a5f703ea
9 changed files with 61 additions and 26 deletions
|
|
@ -6,7 +6,7 @@ const { Server } = require("socket.io");
|
|||
const server = http.createServer(app);
|
||||
const io = new Server(server, {
|
||||
cors: {
|
||||
origin: "http://127.0.0.1:4200",
|
||||
origin: "http://localhost:4200",
|
||||
methods: ["GET", "POST"],
|
||||
credentials: true
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ const cookieParser = require('cookie-parser');
|
|||
app.use(cookieParser());
|
||||
|
||||
const cors = require('cors');
|
||||
app.use(cors({origin: 'http://127.0.0.1:4200', credentials: true}));
|
||||
app.use(cors({origin: 'http://localhost:4200', credentials: true}));
|
||||
|
||||
const auth = require("./auth");
|
||||
|
||||
|
|
|
|||
Reference in a new issue