mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02: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;
|