windows上 fiddler劫持域名异常
来源:4-2 通用JS工具类封装(网络数据请求功能)
BamLin
2019-03-13
fiddler中这么设置的时候,访问还是显示 404,
EXACT:http://localhost:8088/product/list.do
http://happymmall.com/product/list.do
但是加入参数 ?keyword=1 之后,就访问正常
EXACT:http://localhost:8088/product/list.do?keyword=1
http://happymmall.com/product/list.do?keyword=1
而在一开始 使用 gome和suning的例子,下面是正常的
EXACT:https://www.gome.com.cn/
https://www.suning.com/
这个是什么原因?对后续有影响吗
写回答
2回答
-
williamdsy
2020-02-19
我这里没有加keyword=1是正常的,、在index.js里面加上
_mm.request({
url : '/product/list.do?keyword=1',
还有map to 里面加上就行
00 -
Rosen
2019-03-15
换charles吧,或者直接在webpack.config.js里配上下面的:
devServer: { port: 8088, inline: true, proxy : { '**/*.do' : { target: 'http://test.happymmall.com', changeOrigin : true } } }00
相似问题