Skip to content

Commit

Permalink
fix(window/manager.cc): allow 'http' requests on linux again
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Aug 20, 2024
1 parent 7526c7f commit c75bfaa
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/window/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -291,22 +291,7 @@ namespace SSC {
windowOptions.userConfig = options.userConfig;
}

const auto window = this->createWindow(windowOptions);

if (isDebugEnabled() && window->index == 0) {
#if SOCKET_RUNTIME_PLATFORM_LINUX
if (devHost.starts_with("http:")) {
auto webContext = webkit_web_context_get_default();
auto security = webkit_web_context_get_security_manager(webContext);
webkit_security_manager_register_uri_scheme_as_display_isolated(security, "http");
webkit_security_manager_register_uri_scheme_as_cors_enabled(security, "http");
webkit_security_manager_register_uri_scheme_as_secure(security, "http");
webkit_security_manager_register_uri_scheme_as_local(security, "http");
}
#endif
}

return window;
return this->createWindow(windowOptions);
}

JSON::Array WindowManager::json (const Vector<int>& indices) {
Expand Down

0 comments on commit c75bfaa

Please sign in to comment.