Files
Watcharr/server
tonghuaroot 4e6e71687b fix(plex): strip X-Plex-Token on cross-host redirect
The Plex integration used bare http.Client values with no CheckRedirect
policy, so they followed redirects automatically. net/http strips the
standard sensitive headers on a cross-host redirect but not custom-named
headers, so the Plex token carried in X-Plex-Token was forwarded verbatim
to any host the configured PLEX_HOST redirected to, disclosing the
credential.

Route all Plex outbound calls through a shared client whose CheckRedirect
policy deletes X-Plex-Token when the redirect target host differs from the
original request host. Includes a regression test.

Signed-off-by: tonghuaroot <tonghuaroot@gmail.com>
2026-07-26 01:27:30 +00:00
..
2024-04-13 00:32:03 +01:00
2025-10-24 18:37:20 +01:00
2026-02-09 12:49:33 +00:00
2026-02-16 23:49:18 +00:00
2025-10-24 18:37:20 +01:00
2026-07-10 20:30:23 +00:00
2026-01-01 20:56:54 +00:00
2026-01-01 20:56:54 +00:00
2026-02-26 22:21:33 +00:00
2026-07-26 01:34:45 +01:00