9 browser google-chrome panel inspect
自 7 月 14 日 7 月 20 日最新的 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
Run Code Online (Sandbox Code Playgroud)
当我通过打开查看上述消息的详细信息时,我发现这些消息都与我的站点无关,因此我无法控制这些站点/资源如何使其内容可用。以下是消息详情:
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 ...
Run Code Online (Sandbox Code Playgroud)
第二条消息说:
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
Run Code Online (Sandbox Code Playgroud)
** 更新 ** 仍然没有解决这个问题,但我想我会补充说,用于显示编码错误的控制台,例如在我的 javascript 函数中,似乎不再这样做了。现在,当我的其中一个函数出现语法错误时,我看不到任何控制台消息,并且只有在我尝试调用不存在的函数时才发现存在问题。然后,我必须找到函数的定义,并在视觉上扫描“缺失”函数以查找其后带有红色 x 的行。Chrome 曾经为我这样做过,但现在我必须这样做。我相信这可能与新的跨站点问题警报挡路或我试图过滤掉这些警报有关,这只是部分成功。
CHROME——这不是改进。
此外,除非资源是我网站的一部分,否则您希望我对此做些什么?不使用它们?我猜你认为你最了解,很快就会阻止我接触他们。那太好了,我等不及了。您缺乏有关如何最好地处理所有这些的细节将使互联网回到黑暗时代,只要我们继续使用,我们就只能显示文本,没有视频,也没有不在同一站点托管的图片铬合金!让我们看看 IE 和 Edge 对自己开枪,现在是 Chrome,我想是时候切换到 FireFox 了。你在听 Chrome 吗?
谢谢
| 归档时间: |
|
| 查看次数: |
1384 次 |
| 最近记录: |