I'd like to use this method: "Page.setBypassCSP"
to bypass CSP.
I'm trying to use it this way:
Code: Select all
var TempParams := TCefDictionaryValueRef.New;
TempParams.SetBool('enabled', TRUE);
var FID:=1;
CHROME.ExecuteDevToolsMethod(FID, 'Page.setBypassCSP', TempParams);
Do You know where should I call this DevTools method to make it working:
I tried: onBeforeBrowse and also right after I have properly created browser. There was no effect in neither of these places.