CookieProfileSwitcher
CookieProfileSwitcher copied to clipboard
Use native API for domain lookup
This fixes an issue where localhost (or localhost:3000) is not looked up properly, and so there'd be a separate profile for each page of the site.
It looks like there's another issue somewhere though, because the cookie is not being updated appropriately when I switch between profiles
Finally got around to looking at this again! It looks like I needed .hostname
, not .host
, because .host
includes the port, and cookie domains don't include the port