Skip to content

Commit

Permalink
Quiet down missing CSP header warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Aug 15, 2024
1 parent ee37fed commit e3afec1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cobalt/web/csp_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ bool CspDelegateSecure::CanLoad(ResourceType type, const GURL& url,
if (csp_header_policy_ == csp::kCSPRequired || should_allow) {
return should_allow;
} else {
LOG(WARNING) << "Page must include Content-Security-Policy header, it "
"will fail to load in production builds of Cobalt!";
if (type == kLocation) {
LOG(WARNING) << "Page must include Content-Security-Policy header, it "
"will fail to load in production builds of Cobalt!";
}
}
}

Expand Down

0 comments on commit e3afec1

Please sign in to comment.