Skip to content

Commit

Permalink
fix: Fix webkit patcher skipping non-secure requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Dec 29, 2024
1 parent 43b280a commit b9a6d0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/hooks/csp_bypass.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const void BypassCSP(void)
{
const std::string targetUrl = target["url"].get<std::string>();

if (target["type"] == "page" && targetUrl.find("steamloopback.host") == std::string::npos && targetUrl.find("https://") != std::string::npos)
// make sure the only target none client pages.
if (target["type"] == "page" && targetUrl.find("steamloopback.host") == std::string::npos && targetUrl.find("about:blank?") == std::string::npos)
{
Sockets::PostGlobal({
{ "id", 567844 },
Expand Down

0 comments on commit b9a6d0d

Please sign in to comment.