当显示“临时标题"时,Chrome不会显示请求Cookie. [英] Chrome does not show request cookies when "Provisional Headers are shown"

查看:167
本文介绍了当显示“临时标题"时,Chrome不会显示请求Cookie.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在服务器应用程序中设置断点并使用Chrome向暂停的端点发出请求时,调试器坐在该请求上时,cookie不会显示在请求中.我花了一些时间调试为什么客户端不发送cookie,直到我意识到发生了什么-cookie存在但没有显示.为什么会这样?

When I set a breakpoint in my server application and make a request to the paused endpoint with Chrome, cookies are not shown in the request while the debugger is sitting on it. I spent a moment debugging why the client wasn't sending cookies until I realized what was going on - cookies exist but are not displayed. Why does this happen?

是的,我了解在Chrome调试器中,但这无法回答为什么显示了某些标题而没有显示某些标题的原因.

Yes I know about "CAUTION: provisional headers are shown" in Chrome debugger, but this doesn't answer why some headers are shown and others aren't.

推荐答案

来自:

显示的未决请求标头是临时的.他们代表 Blink向Chromium发送了什么请求.

Headers displayed for pending requests are provisional. They represent what request was sent from Blink to Chromium.

在服务器响应之前,我们不会更新标头,以避免其他情况 通知仅由DevTools使用.

We do not update headers until server responds to avoid additional notification used only by DevTools.

要观看真实的网络活动,可以使用chrome://net-internals

To watch real network activity you can use chrome://net-internals

这篇关于当显示“临时标题"时,Chrome不会显示请求Cookie.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆