DefaultRequestHandlerCanSetCookie Method |
Version 67.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: 67.0.0.0 (67.0.0.0)
Syntax public virtual bool CanSetCookie(
IWebBrowser browserControl,
IBrowser browser,
IFrame frame,
IRequest request,
Cookie cookie
)
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:
BooleanReturn true to allow the cookie to be stored or false to block the cookie.
Implements
IRequestHandlerCanSetCookie(IWebBrowser, IBrowser, IFrame, IRequest, Cookie)See Also