FilterRequest 结构

struct QWebEngineCookieStore ::FilterRequest

The QWebEngineCookieStore::FilterRequest 结构被用于结合 QWebEngineCookieStore::setCookieFilter () and is the type filterCallback operates on. 更多...

公共变量

QUrl firstPartyUrl
QUrl origin
bool thirdParty

详细描述

另请参阅 QWebEngineCookieStore::setCookieFilter ().

成员变量文档编制

QUrl FilterRequest:: firstPartyUrl

This variable holds the URL that was navigated to.

The site that would be showing in the location bar if the application has one.

Can be used to white-list or black-list cookie access or third-party cookie access for specific sites visited.

另请参阅 origin and thirdParty .

QUrl FilterRequest:: origin

This variable holds the URL of the script or content accessing a cookie.

Can be used to white-list or black-list third-party cookie access for specific services.

另请参阅 firstPartyUrl and thirdParty .

bool FilterRequest:: thirdParty

This variable holds whether this is considered a third-party access.

This is calculated by comparing FilterRequest::origin and FilterRequest::firstPartyUrl and checking if they share a common origin that is not a top-domain (like .com or .co.uk), or a known hosting site with independently owned subdomains.

另请参阅 firstPartyUrl and origin .