配置 https 跨域
src/setupProxy.js
const proxy = require('http-proxy-middleware');
module.exports = function(app) {
app.use(proxy('/v1/token', {
target: 'https://oauth.aliyun.com/',
"secure": false,
"changeOrigin": true
}));
};
配置 https 跨域
src/setupProxy.js
const proxy = require('http-proxy-middleware');
module.exports = function(app) {
app.use(proxy('/v1/token', {
target: 'https://oauth.aliyun.com/',
"secure": false,
"changeOrigin": true
}));
};