Skip to content

Commit

Permalink
add exception for socket.io endpoint on sliver.tv, fixes brave/brave-…
Browse files Browse the repository at this point in the history
  • Loading branch information
pes10k committed Jul 24, 2019
1 parent 4048068 commit 579d0aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/shield_exceptions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ bool IsWhitelistedCookieException(const GURL& firstPartyOrigin,
}

// 1st-party-dependent whitelist
static std::map<GURL, std::vector<URLPattern> > whitelist_patterns = {};
static std::map<GURL, std::vector<URLPattern> > whitelist_patterns = {
{
GURL("https://www.sliver.tv/"),
std::vector<URLPattern>({URLPattern(URLPattern::SCHEME_ALL,
"https://*.thetatoken.org:8700/*")})
}
};
std::map<GURL, std::vector<URLPattern> >::iterator i =
whitelist_patterns.find(firstPartyOrigin);
if (i == whitelist_patterns.end()) {
Expand Down

0 comments on commit 579d0aa

Please sign in to comment.