egg.js实现跨域访问

egg.js要实现跨域访问,须要安装egg-cors插件html egg-cors的github连接:https://github.com/eggjs/egg-corsjquery config.default.js配置:git exports.security = { domainWhiteList: [ 'http://192.168.115.152:3000' ], }; config.
相关文章
相关标签/搜索