The chrome.cookies.set API receive url
as one of its parameter, from which cookie's domain
and path
is calculated.
For example, if url
's value is https://stackoverflow.com
, then domain
is stackoverflow.com
, while path
is /
.
The issue is, how to set a cookie with stackoverflow's subdomain: .stackoverflow.com
. In other words, we want to have a cookie whose domain
value is .stackoverflow.com
I've tried two approaches, none of them work.
{ url: https//*.stackoverflow.com }
{ url: https//.stackoverflow.com }