小编Mar*_*lin的帖子

无法在 Chrome 网络选项卡中看到请求负载

我使用的是 Windows 10。当我打开 Chrome 开发工具、转到 XHR 请求并单击标头时,我只看到以下三件事:

在此输入图像描述

知道为什么我在任何地方都看不到请求有效负载吗?我使用的是 Chrome 版本 65.0.3325.162(官方版本)(64 位)。就其价值而言,这是我的请求标头(其中 URL 匿名为“示例”):

Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 231
Content-Type: application/json
Host: example.com
Origin: http://localhost:9000
Referer: http://localhost:9000/example
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Run Code Online (Sandbox Code Playgroud)

我想知道gzip, deflatefor the是否Accept-Encoding是造成这种情况的原因。或者这是一个 Chrome 错误?

更新:就其价值而言,我注意到这些有问题的请求的“类型”是json。通常,在其他地方,在其他 Ajax 驱动的 Web 应用程序中,它是xhr. 我想这就是问题所在。那么问题来了,这是 Chrome 的 bug 还是 Chrome 的功能呢?

google-chrome google-chrome-devtools

5
推荐指数
2
解决办法
2万
查看次数