diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-20 18:26:22 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-20 18:26:22 +0100 |
commit | b9a180b154fe3ba6e02fc3d7ac313d91d441014b (patch) | |
tree | 500d09dc3c749901428e5934f43356b3a1d10dc5 | |
parent | a66ef1059b29946e62fc1da7175109a386985ee7 (diff) | |
download | alps-b9a180b154fe3ba6e02fc3d7ac313d91d441014b.tar.gz alps-b9a180b154fe3ba6e02fc3d7ac313d91d441014b.zip |
Disable DNS prefetching
-rw-r--r-- | server.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -305,6 +305,8 @@ func New(e *echo.Echo, options *Options) (*Server, error) { // `style-src 'unsafe-inline'` is required for e-mails with // embedded stylesheets ectx.Response().Header().Set("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'") + // DNS prefetching has privacy implications + ectx.Response().Header().Set("X-DNS-Prefetch-Control", "off") return next(ectx) } }) |