Click or drag to resize

ResourceRequestHandler.GetCookieAccessFilter Method

Version 89.0.170
Called on the CEF IO thread before a resource request is loaded. To optionally filter cookies for the request return a ICookieAccessFilter object.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax
protected virtual ICookieAccessFilter GetCookieAccessFilter(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request
)

Parameters

chromiumWebBrowser
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control.
browser
Type: CefSharp.IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest.
frame
Type: CefSharp.IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest.
request
Type: CefSharp.IRequest
the request object - can be modified in this callback.

Return Value

Type: ICookieAccessFilter
To optionally filter cookies for the request return a ICookieAccessFilter instance otherwise return null.
See Also