Skip to content

Commit

Permalink
Add hostname pattern support to secure context whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
hferreiro authored and darkdh committed Aug 3, 2018
1 parent 2073593 commit 2f5cf55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions brave/renderer/brave_content_renderer_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ void BraveContentRendererClient::RenderThreadStarted() {
prescient_networking_dispatcher_.reset(
new network_hints::PrescientNetworkingDispatcher());

for (auto& origin : secure_origin_whitelist::GetWhitelist()) {
WebSecurityPolicy::AddOriginTrustworthyWhiteList(WebSecurityOrigin(origin));
for (auto& origin_or_hostname_pattern :
secure_origin_whitelist::GetWhitelist()) {
WebSecurityPolicy::AddOriginTrustworthyWhiteList(
WebString::FromUTF8(origin_or_hostname_pattern));
}

for (auto& scheme :
Expand Down

0 comments on commit 2f5cf55

Please sign in to comment.