egg.js post跨域请求问题

使用Egg调用POST请求的时候,浏览器会触发405报错git 须要使用egg-cors插件 npm i egg-cors --save config.default.js config.security = { csrf: { enable: false, ignoreJSON: true, // 默认为 false,当设置为 tr
相关文章
相关标签/搜索