mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
CDNs such as Cloudflare bypass their cache if cookies are set in the response. clearCookies middleware removes the header before imageproxy serves the image.
7 lines
133 B
TypeScript
7 lines
133 B
TypeScript
const clearCookies: Middleware = (_req, res, next) => {
|
|
res.removeHeader('Set-Cookie');
|
|
next();
|
|
};
|
|
|
|
export default clearCookies;
|