mirror of
https://github.com/iv-org/invidious.git
synced 2026-05-18 22:21:23 -05:00
Match cookie domain to the current request host so onion mirrors fall back to host-only cookies instead of reusing the configured clearnet domain. Also clear SID and PREFS cookies with explicit domain and path attributes to avoid leaving stale cookies behind when signing out or replacing anonymous preferences. Refs: #1421