Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request headers看不到了 #522

Closed
1548583993 opened this issue Mar 30, 2022 · 13 comments
Closed

request headers看不到了 #522

1548583993 opened this issue Mar 30, 2022 · 13 comments
Labels

Comments

@1548583993
Copy link

3.14.3,Network中,各个请求的Request Headers没有了

@Maizify
Copy link
Collaborator

Maizify commented Mar 30, 2022

请问是XHR还是Fetch?

@Maizify Maizify added the Details wanted Need more details label Mar 30, 2022
@1548583993
Copy link
Author

XHR

@Maizify
Copy link
Collaborator

Maizify commented Mar 30, 2022

麻烦提供一下可复现的case。

@1548583993
Copy link
Author

111
就是Request Headers看不到了,这里有配置项可以配置么

@Maizify
Copy link
Collaborator

Maizify commented Mar 30, 2022

header是在onReadyStateChange的时候取的,看来可能是这里有问题。从截图看,HTTP Status也丢了。我再查查看。

@1548583993
Copy link
Author

上面的图左边是最新版 右边是稍旧一些的。总之信息应该尽可能全面的。

@Maizify
Copy link
Collaborator

Maizify commented Mar 30, 2022

请问有没有用其他的网络库呢,比如Axios。或者你的业务框架里有无对XMLHttpRequest做改动?

@baiyoung
Copy link

通 request headers 看不到了

@1548583993
Copy link
Author

就是Axios,也没有什么特殊的改动。上面两个图是同一个项目里的两个类似的调用。

@1548583993
Copy link
Author

222
同一个请求,三个版本的vconsole.(以前没有Response Headers,3.14.3有了)

@Maizify
Copy link
Collaborator

Maizify commented Mar 30, 2022

收到,我定位一下。

@Maizify
Copy link
Collaborator

Maizify commented Mar 31, 2022

已定位到原因,在3.14.0时重写了XHR的代理逻辑,缺少代理了setRequestHeader方法导致未捕获到header。预计在3.14.4中修复。

@1548583993
Copy link
Author

感谢。

@Maizify Maizify closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants