node.js 脚手架使用 cors 插件快速实现 跨域请求

我在学习uniapp的时候 学到了  请求这块  就想着 自己用node.js搭建一个本地的服务器 用来请求  意料之内碰见了  跨域问题   cors 同源策略 限制   安装 cors插件让你三分钟解决跨域问题 1.安装  cors    npm install cors 2.配置 //配置ajax跨域请求 app.use(cors({     origin:"*",     credenti
相关文章
相关标签/搜索