Skip to content

Commit

Permalink
Merge pull request #3014 from brave/pr2975_add-3p-cookie-exception-fo…
Browse files Browse the repository at this point in the history
…r-sliver_0.67.x

add exception for socket.io endpoint on sliver.tv (uplift to 0.67.x)
  • Loading branch information
bsclifton authored Jul 26, 2019
2 parents 2797abf + 6386e18 commit 6640cd1
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 6640cd1

Please sign in to comment.