khanhsnd 4aecf4e6f0 fix: handle cookies correctly on onion mirrors
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
2026-05-11 21:44:09 +07:00
..