windows上 fiddler劫持域名异常

来源:4-2 通用JS工具类封装(网络数据请求功能)

BamLin

2019-03-13

fiddler中这么设置的时候,访问还是显示 404,
EXACT:http://localhost:8088/product/list.do
http://happymmall.com/product/list.do

而在一开始 使用 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 里面加上就行

0
0

Rosen

2019-03-15

换charles吧,或者直接在webpack.config.js里配上下面的:

devServer: {
        port: 8088,
        inline: true,
        proxy : {
            '**/*.do' : {
                target: 'http://test.happymmall.com',
                changeOrigin : true
            }
        }
    }


0
0

真实数据对接 从0开发前后端分离的企业级上线项目

【毕设项目精品】前端实战,对接真实服务端数据,开发完整项目

4282 学习 · 4122 问题

查看课程