PeerTube/server/core/middlewares/dnt.ts
2023-10-04 15:13:25 +02:00

16 lines
316 B
TypeScript

import * as express from 'express'
const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
if (!res.headersSent) {
res.setHeader('Tk', 'N')
}
return next()
}
// ---------------------------------------------------------------------------
export {
advertiseDoNotTrack
}