03 2022 档案
摘要:1. 安装egg-cors npm install egg-cors --save 2.打开config/plugin.js exports.cors: { enable: true, package: 'egg-cors' } 3.在config/config.default.js config.
阅读全文
摘要:在EGG的配置文件config.default.js中 const config = exports = { security: { xframe: { enable: true, // 'SAMEORIGIN', 'DENY' or 'ALLOW-FROM http://example.jp' v
阅读全文