📌  相关文章
📜  access-to-xmlhttprequest-has-been-blocked-by-cors-policy - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:08.293000             🧑  作者: Mango

代码示例2
app.use(function (request, response, next) {
  response.header("Access-Control-Allow-Origin", "*");
  response.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
});