📌  相关文章
📜  access-control-allow-origin - Javascript 代码示例

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

代码示例1
app.use(function(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "X-Requested-With");
  next();
  });