proxy: {
'react/api': {
target: 'https://www.abc.com',
secure: false, // http請求https,這裏需設置成false,
pathRewrite: {
'header.json': 'demo.json'
},
changeOrigin: true // 一些服務器防止爬蟲會設置origin,
}
}
proxy: {
'react/api': {
target: 'https://www.abc.com',
secure: false, // http請求https,這裏需設置成false,
pathRewrite: {
'header.json': 'demo.json'
},
changeOrigin: true // 一些服務器防止爬蟲會設置origin,
}
}