1.设置Charles菜单栏tools中的Map Local

Charles实现本地数据mock,接口报404

2.add一条Mapping

切记:不要用localhost,用localhost.charlesproxy.com

并且Path一定要加后缀,如下所示:/list.json,一定要加.json,不然也会报404

Charles实现本地数据mock,接口报404

3.浏览器中访问时也不能直接使用localhost加端口号,要用localhost.charlesproxy.com加端口号,如:

localhost.charlesproxy.com:3000

Charles实现本地数据mock,接口报404

 

 

 

相关文章:

  • 2021-07-20
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-04-09
  • 2021-10-13
猜你喜欢
  • 2021-06-27
  • 2021-11-02
  • 2022-12-23
  • 2022-01-18
  • 2021-11-20
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案