diff --git a/app.js b/app.js index 8871f7e..141d51f 100644 --- a/app.js +++ b/app.js @@ -25,8 +25,10 @@ app.use(express.urlencoded({ extended: false })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); +console.debug(`webClient:${process.env.webClient}`) + app.use(cors({ - origin:[process.env.webClient], + origin:[process.env.webClient,process.env.devClient], credentials:true })) app.use('/', indexRouter); diff --git a/routes/project/info.js b/routes/project/info.js index 68b5f88..a92a4f6 100644 --- a/routes/project/info.js +++ b/routes/project/info.js @@ -41,7 +41,7 @@ router.get('/member', function (req, res, next) { company:()=>Mock.Random.word(), department:()=>Mock.Random.word(), specialty:()=>Mock.Random.word(), - time:()=>Mock.Random.datetime(), + time:()=>Mock.Random.date(), note:()=>Mock.Random.sentence(3, 5) }) res.json(data)