|
|
@ -20,8 +20,9 @@ app.use(express.json()); |
|
|
|
app.use(express.urlencoded({ extended: false })); |
|
|
|
app.use(express.urlencoded({ extended: false })); |
|
|
|
app.use(cookieParser()); |
|
|
|
app.use(cookieParser()); |
|
|
|
app.use(express.static(path.join(__dirname, 'public'))); |
|
|
|
app.use(express.static(path.join(__dirname, 'public'))); |
|
|
|
|
|
|
|
|
|
|
|
app.use(cors({ |
|
|
|
app.use(cors({ |
|
|
|
origin:['http://localhost:5000'], |
|
|
|
origin:[process.env.webClient], |
|
|
|
credentials:true |
|
|
|
credentials:true |
|
|
|
})) |
|
|
|
})) |
|
|
|
app.use('/', indexRouter); |
|
|
|
app.use('/', indexRouter); |
|
|
|