IRequestHandlerCanSetCookie 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
Assembly:
CefSharp (in CefSharp.dll) Version: 71.0.0.0 (71.0.0.0)
Syntax bool CanSetCookie(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
Cookie cookie
)
bool CanSetCookie(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
Cookie^ cookie
)
Parameters
- chromiumWebBrowser
- 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.
See Also