How do you whitelist cookies by subdomain in Firefox?

I'm migrating from Brave. I have a whitelist of (sub)domains that I allow to save cookies, a blacklist that's never allowed, and the rest get deleted when I close my browser.

I ported this list to LibreWolf but I cannot find an option to view exactly which domains are setting cookies. For example, on YouTube, accounts.youtube.com is enabled to keep me logged in. But when I click the settings icon on the search bar, it only gives me the option to delete cookies for youtube.com and doesn't list which domains are setting cookies. This is fine for youtube because I already know but not alright for new websites that I might use.

The rules doesn't accept regex either. So if I want to block accounts.google.com, I cannot block *.google.com. I have to block the domain and all the subdomains individually. Which is even harder because of the first issue.

Infiltrated_ad8271 ,
@Infiltrated_ad8271@kbin.social avatar

Firefox's cookie management is absolutely terrible and anachronistic, forget about automated granular control. It also has serious bugs like this one, it's better to use containers for any site where you want a whitelist.

There are some addons to help you manage it, but I think they are all flawed or broken.

Rez ,
@Rez@sh.itjust.works avatar

You could use the uMatrix extension to control not only cookies, but everything else (like scripts, css, images) by subdomain.
Inb4 someone says it's outdated.
It works perfectly fine.

milkytoast ,
@milkytoast@kbin.social avatar

man this is so nice. just youtube account and video player are allowed, nothing else. thanks for this

darkmatternoodlecow ,

Settings > Privacy & Security > Cookies and Site Data > Manage Exceptions...

Add a site and click "Allow", and that site's cookies will be allowed to be set and will not be deleted automatically.

driveway OP ,

This answers the title, I'll give you that.

beta_tester ,

With cookie auto delete

Aradia ,
@Aradia@lemmy.ml avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • privacy@lemmy.ml
  • random
  • test
  • worldmews
  • mews
  • All magazines