0

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 work, we want to have a cookie whose domain value is .stackoverflow.com

I've tried two approaches, none of them work.

  1. { url: https//*.stackoverflow.com }
  2. { url: https//.stackoverflow.com }

0 Answers0