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

14 lines
275 B
TypeScript
Raw Normal View History

import * as ipaddr from 'ipaddr.js'
import { format } from 'util'
const advertiseDoNotTrack = (_, res, next) => {
res.setHeader('Tk', 'N')
return next()
}
// ---------------------------------------------------------------------------
export {
advertiseDoNotTrack
}