一开始的写法:

报错:
Proxy error: Could not proxy request

修改为:
如下即可,什么都不要加

module.exports = {
  devServer: { proxy: 'http://127.0.0.1:8000' }
}

转发成功!



Last modification:April 8th, 2020 at 11:38 pm
If you think my article is useful to you, please feel free to appreciate