更新跨域配置

master
pan 4 years ago
parent 27c8a7a85c
commit 8d4ad9ad7f
  1. 2
      app.js

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

Loading…
Cancel
Save