|
|
@ -32,7 +32,7 @@ app.use(express.static(path.join(__dirname, 'public'))); |
|
|
|
console.debug(`webClient:${process.env.webClient}`) |
|
|
|
console.debug(`webClient:${process.env.webClient}`) |
|
|
|
|
|
|
|
|
|
|
|
app.use(cors({ |
|
|
|
app.use(cors({ |
|
|
|
origin:[process.env.webClient,process.env.devClient], |
|
|
|
origin:[process.env.webClient], |
|
|
|
credentials:true |
|
|
|
credentials:true |
|
|
|
})) |
|
|
|
})) |
|
|
|
app.use('/', indexRouter); |
|
|
|
app.use('/', indexRouter); |
|
|
|