diff --git a/extension/background.js b/extension/background.js index 5ec1506..b220dfb 100644 --- a/extension/background.js +++ b/extension/background.js @@ -195,9 +195,12 @@ async function cookieStr(cookieLines) { } function buildCookieLine(cookie) { + // 2nd argument controls subdomains, and must match leading dot in domain + let includeSubdomains = cookie.domain.startsWith('.') ? 'TRUE' : 'FALSE'; + return [ cookie.domain, - 'TRUE', + includeSubdomains, cookie.path, cookie.httpOnly.toString().toUpperCase(), Math.trunc(cookie.expirationDate) || 0,