Chrome 未在“网络"选项卡中显示 OPTIONS 请求 [英] Chrome not showing OPTIONS requests in Network tab

查看:51
本文介绍了Chrome 未在“网络"选项卡中显示 OPTIONS 请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Web 客户端应用程序正在通过 fetch API 设置 HTTP POST 请求.

My web client application is setting HTTP POST requests via fetch API.

我看到 OPTIONS 预检请求是通过调试代理(Charles 代理)发送的,但它们没有显示在 Google Chrome Developer ToolsNetwork 选项卡中.

I see that OPTIONS preflight requests are sent via debugging proxy (Charles Proxy), but they are not displayed in Google Chrome Developer ToolsNetwork tab.

我没有在网络选项卡上设置任何过滤器.我记得 OPTIONS 请求在那里可见,但不再可见.我如何将它们带回来?

I don't have any filters setup on the network tab. I remember OPTIONS requests being visible there, but not anymore. How do I bring them back?

推荐答案

您需要前往:chrome://flags/#out-of-blink-cors, 禁用标志,然后重新启动 Chrome.

You'll need to go to: chrome://flags/#out-of-blink-cors, disable the flag, and restart Chrome.

这是预期的行为变化,根据:
https://bugs.chromium.org/p/chromium/issues/detail?id=995740#c1

This is an expected behavior change according to:
https://bugs.chromium.org/p/chromium/issues/detail?id=995740#c1

我最初是通过以下方式发现的:
https://support.google.com/chrome/thread/11089651?hl=en

I originally came across this via:
https://support.google.com/chrome/thread/11089651?hl=en

这篇关于Chrome 未在“网络"选项卡中显示 OPTIONS 请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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