QWebEngineCookieStore::FilterRequest Struct

struct QWebEngineCookieStore::FilterRequest

QWebEngineCookieStore::FilterRequest 结构与QWebEngineCookieStore::setCookieFilter() 结合使用,是filterCallback 的操作类型。更多

公共变量

详细说明

另请参阅 QWebEngineCookieStore::setCookieFilter().

成员变量文档

QUrl FilterRequest::firstPartyUrl

该变量包含导航到的 URL。

如果应用程序有位置栏,则位置栏中会显示该网站。

可用于白名单或黑名单 cookie 访问或访问特定网站的第三方 cookie 访问。

另请参阅 originthirdParty

QUrl FilterRequest::origin

该变量包含访问 cookie 的脚本或内容的 URL。

可用于将特定服务的第三方 cookie 访问列入白名单或黑名单。

另请参阅 firstPartyUrlthirdParty

bool FilterRequest::thirdParty

该变量表示该访问是否被视为第三方访问。

计算方法是比较FilterRequest::originFilterRequest::firstPartyUrl ,检查它们是否共享一个非顶级域(如 .com 或 .co.uk)或具有独立子域的已知托管网站。

另请参见 firstPartyUrlorigin

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.