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.
相關文章
相關標籤/搜索