📜  反应护照会话 - Javascript代码示例

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

代码示例1
app.use(
    cors({
         origin: "http://localhost:3000", // allow to server to accept request from different origin
         methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
         credentials: true, // allow session cookie from browser to pass through
   })
);