📜  快速获取请求来源 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:06.731000             🧑  作者: Mango

代码示例1
app.use((req, res, next) => {
  const host = req.get('host');
  const origin = req.get('origin');
});