Turn off web security for devtools.
This commit is contained in:
parent
f1e72914f5
commit
263c4b9ab4
1 changed files with 6 additions and 0 deletions
|
@ -85,6 +85,12 @@ void AtomBrowserClient::OverrideWebkitPrefs(
|
|||
prefs->allow_displaying_insecure_content = true;
|
||||
prefs->allow_running_insecure_content = true;
|
||||
|
||||
// Turn off web security for devtools.
|
||||
if (url.SchemeIs("chrome-devtools")) {
|
||||
prefs->web_security_enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
NativeWindow* window = NativeWindow::FromRenderView(
|
||||
render_view_host->GetProcess()->GetID(),
|
||||
render_view_host->GetRoutingID());
|
||||
|
|
Loading…
Reference in a new issue