首页 > 解决方案 > 如何在控制台区域隐藏新的 Chrome v84.0.4147.89 Issues Detected 消息?

问题描述

自 20 年 7 月 14 日最新的 Chrome 更新版本 84.0.4147.89(官方构建)(64 位))以来,当我打开浏览器的检查(调试)面板时,我看到“ Issues detected: The new Issues tab displays information about deprecations, breaking changes and other potential problems.”并且看不到第一条(少数)消息在控制台区域中,直到单击“转到问题”按钮。

在控制台过滤器中放置“跨站点引用”确实会隐藏包含这些单词的消息,但它不会阻止检测到问题的消息以及需要单击按钮来清除它。新问题选项卡中没有类似的过滤器。

如何隐藏或阻止此消息以及单击此按钮的需要?

请注意,我希望问题显示在“问题”选项卡中,但我不想查看它们来清除 Chrome 的新消息。

此消息和问题消息显示在 Google 主页搜索页面、其他网页和我正在开发的网站上。因此,由于 Google 主页搜索页面和其他网页显示相同的消息,因此问题并不特定于我的网站。但是,我担心 Chrome 会在不久的将来阻止我无法控制的跨站点 cookie,这会影响我的网站。

以防万一问题消息对于找到解决方案很重要,这是我单击按钮时在新问题选项卡中看到的内容:

21 Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute

2 Indicate whether a cookie is intended to be set in cross-site context by specifying its SameSite attribute

当我通过打开它们查看上述消息的详细信息时,我发现这些都与我的站点无关,因此我无法控制这些站点/资源如何使它们的内容可用。以下是消息详情:

Because a cookie's SameSite attribute was not set or is invalid, it defaults to
SameSite=Lax, which will prevent the cookie from being sent in a cross-site request
in a future version of the browser. This behavior protects user data from
accidentally leaking to third parties and cross-site request forgery.

Resolve this issue by updating the attributes of the cookie: Specify SameSite=None
and Secure if the cookie should be sent in cross-site requests. This enables third-
party use. Specify SameSite=Strict or SameSite=Lax if the cookie should not be sent
in cross-site requests

12 cookies
Name      Domain & Path
_ga       .stripe.com/
ANID      .google.com/
OGPC      .google.com/
OGP       .google.com/
SID       .google.com/
HSID      .google.com/
SSID      .google.com/
APISID    .google.com/
SAPISID   .google.com/
DV        www.google.com/
SIDCC     .google.com/
PREF      .youtube.com/

11 requests
v2/
v3/
api.js?hl=en
 : I edited these out
log ...

第二条消息说:

Because a cookie's SameSite attribute was not set or is invalid, it defaults to
SameSite=Lax, which will prevents the cookie from being set in a cross-site context
in a future version of the browser. This behavior protects user data from
accidentally leaking to third parties and cross-site request forgery.

Resolve this issue by updating the attributes of the cookie: Specify SameSite=None
and Secure if the cookie is intended to be set in cross-site contexts. Note that
only cookies sent over HTTPS may use the Secure attribute. Specify SameSite=Strict
or SameSite=Lax if the cookie should not be set by cross-site requests

2 cookies
Name        Domain & Path
SIDCC       .google.com/
remote_sid  .youtube.com/

1 request
api.js?hl=en

** 更新 ** 仍然没有解决这个问题,但我想我会补充一点,用于显示编码错误的控制台,比如在我的 javascript 函数中,似乎不再这样做了。现在,当我的某个函数出现语法错误时,我看不到任何控制台消息,实际上只有在我尝试调用不存在的函数时才发现有问题。然后我必须找到函数的定义,并在视觉上扫描“缺失”函数以查找后面有红色 x 的行。Chrome 曾经为我这样做,但现在我必须这样做。我认为这可能与新的跨站点问题警报妨碍或我试图过滤掉这些警报有关,这只是部分成功。

CHROME——这不是改进。

此外,除非该资源是我网站的一部分,否则您希望我对此做些什么(如果有的话)?不使用它们?我猜你认为你最了解,很快就会阻止我接近他们。那太好了,我等不及要发生这种情况了。您缺乏关于如何最好地处理所有这一切的细节将使互联网回到黑暗时代,只要我们继续使用,我们就只能显示不在同一站点中的文本、视频和图片铬合金!让我们看看 IE 和 Edge 中枪,现在是 Chrome,我想是时候切换到 FireFox 了。你在听 Chrome 吗?

谢谢

标签: google-chromebrowserpanelinspect

解决方案


推荐阅读