onBeforeResourceLoad
abstract fun onBeforeResourceLoad(browser: CefBrowser, frame: CefFrame, request: CefRequest): Boolean
Called on the IO thread before a resource request is loaded. The |browser| and |frame| values represent the source of the request, and may be null for requests originating from service workers or CefURLRequest. To redirect or change the resource load optionally modify |request|. Modification of the request URL will be treated as a redirect.
Return
To cancel the request return true otherwise return false.
Parameters
browser
The corresponding browser.
frame
The frame generating the event. Instance only valid within the scope of this method.
request
The request itself. May be modified in this callback. Instance only valid within the scope of this method.