Init commit
This commit is contained in:
15
server/core/middlewares/dnt.ts
Normal file
15
server/core/middlewares/dnt.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as express from 'express'
|
||||
|
||||
const advertiseDoNotTrack = (_, res: express.Response, next: express.NextFunction) => {
|
||||
if (!res.headersSent) {
|
||||
res.setHeader('Tk', 'N')
|
||||
}
|
||||
|
||||
return next()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
advertiseDoNotTrack
|
||||
}
|
||||
Reference in New Issue
Block a user