var cors = require("cors")
var express = require('express')
app.use(cors({credentials: true, origin: 'http://localhost:3000'}));
var cors = require("cors")
var express = require('express')
app.use(cors({credentials: true, origin: 'http://localhost:3000'}));
本文标题:nodejs express设置服务端允许跨域
本文链接:https://www.haomeiwen.com/subject/rqivsxtx.html
网友评论