FilterRequest Struct

Struct FilterRequest is declared in class QWebEngineCookieStore.

The QWebEngineCookieStore::FilterRequest struct is used in conjunction with QWebEngineCookieStore::setCookieFilter() and is the type filterCallback operates on. More...

This struct was introduced in Qt 5.11.

Public Variables

Detailed Description

See also QWebEngineCookieStore::setCookieFilter().

Member Variable Documentation

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.

See also 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.

See also 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.

See also firstPartyUrl and origin.

© 2020 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.