feat: add httpOnly
cookies.get
filter (#37255)
feat: add httpOnly cookies filter
This commit is contained in:
parent
85cf56d80b
commit
868676aa5c
3 changed files with 37 additions and 0 deletions
|
@ -133,6 +133,9 @@ bool MatchesCookie(const base::Value::Dict& filter,
|
|||
absl::optional<bool> session_filter = filter.FindBool("session");
|
||||
if (session_filter && *session_filter == cookie.IsPersistent())
|
||||
return false;
|
||||
absl::optional<bool> httpOnly_filter = filter.FindBool("httpOnly");
|
||||
if (httpOnly_filter && *httpOnly_filter != cookie.IsHttpOnly())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue