Tôi muốn proxy/v1/* để http://myserver.com, và đây là kịch bản của tôiwebpack-dev-proxy server doesnt làm việc
devServer: {
historyApiFallBack: true,
// progress: true,
hot: true,
inline: true,
// https: true,
port: 8081,
contentBase: path.resolve(__dirname, 'public'),
proxy: {
'/v1/*': {
target: 'http://api.in.uprintf.com',
secure: false
// changeOrigin: true
}
}
},
Bạn cần đặt cấu hình ở đâu? – zehelvion