mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-02 05:19:17 -06:00
5e755fff9d
* add Content Security Policy * remove reflect-metadata on production builds to get rid of unsafe-eval * fix baseCSP usage * add SRI to CSP * add blob: to media-src * remove SRI * CSP set to reportOnly * adding data: to connect-src CSP * remove block-all-mixed-content * add report-uri support
14 lines
274 B
TypeScript
14 lines
274 B
TypeScript
import * as ipaddr from 'ipaddr.js'
|
|
import { format } from 'util'
|
|
|
|
const advertiseDoNotTrack = (_, res, next) => {
|
|
res.setHeader('Tk', 'N')
|
|
return next()
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
advertiseDoNotTrack
|
|
}
|