Click or drag to resize

DefaultRequestHandlerCanSetCookie Method

Version 71.0.0
Called on the CEF IO thread when receiving a network request with a "Set-Cookie" response header value represented by cookie.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 71.0.0.0 (71.0.0.0)
Syntax
public virtual bool CanSetCookie(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	Cookie cookie
)

Parameters

browserControl
Type: CefSharpIWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
frame
Type: CefSharpIFrame
The frame object
request
Type: CefSharpIRequest
the request object - cannot be modified in this callback
cookie
Type: CefSharpCookie
the cookie object

Return Value

Type: Boolean
Return true to allow the cookie to be stored or false to block the cookie.

Implements

IRequestHandlerCanSetCookie(IWebBrowser, IBrowser, IFrame, IRequest, Cookie)
See Also