setBypassCSP method

Future<void> setBypassCSP(
  1. bool enabled
)

Toggles bypassing page's Content-Security-Policy.

NOTE CSP bypassing happens at the moment of CSP initialization rather then evaluation. Usually this means that page.setBypassCSP should be called before navigating to the domain.

Implementation

Future<void> setBypassCSP(bool enabled) {
  return devTools.page.setBypassCSP(enabled);
}