hedgedoc/lib
Sheogorath da4665c759
Respect DNT header
Do Not Track (DNT) is an old web standard in order to notify pages that
the user doesn't want to be tracked. Even while a lot of pages either
ignore this header or even worse, use it for tracking purposes, the
orignal intention of this header is good and should be adopted.

This patch implements a respect of the DNT header by no longer including
the optional Google Analytics and disqus integrations when sending a DNT
header. This should reduce outside resource usage and help to stay more
private.

This should later-on extended towards other document content (i.e.
iframe based content).

The reason to not change the CDN handling is that CDNs will be
deprecated with next release and removed in long term.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-06-08 23:43:50 +02:00
..
config Fix eslint warnings 2019-05-31 00:30:29 +02:00
migrations Fix eslint warnings 2019-05-31 00:30:29 +02:00
models Fix eslint warnings 2019-05-31 00:30:29 +02:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Fix eslint warnings 2019-05-31 00:30:29 +02:00
workers refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
csp.js Merge pull request #1105 from SISheogorath/fix/gistCSP 2018-12-21 18:39:22 +01:00
history.js Further improvement of error handling for LZString 2018-07-27 15:42:58 +02:00
letter-avatars.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
logger.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
realtime.js switching to eslint for code checking 2018-11-14 23:15:36 +01:00
response.js Respect DNT header 2019-06-08 23:43:50 +02:00
utils.js switch to __dirname 2017-06-02 11:34:35 +01:00