Do browsers by default always make preflight requests? Is using CORS compulsory?

前端 未结 0 518
悲&欢浪女
悲&欢浪女 2021-01-13 15:36

This code is in app.js of Node.js project.

const cors = require("cors");

var corsOptions = {};

app.use(cors(corsOptions));

相关标签:
回答
  • 消灭零回复
提交回复
热议问题