首页 > 解决方案 > Chrome 未在“网络”选项卡中显示 OPTIONS 请求

问题描述

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

我看到 OPTIONS 预检请求是通过调试代理(Charles 代理)发送的,但它们未显示在 Google Chrome 开发人员工具\网络选项卡中。

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

标签: google-chromecorsgoogle-chrome-devtoolspreflight

解决方案


您需要转到:chrome://flags/#out-of-blink-cors禁用该标志,然后重新启动 Chrome。

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

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


推荐阅读