1
0
Fork 0
peertube/server/core/middlewares/dnt.ts

16 lines
316 B
TypeScript
Raw Normal View History

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