aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-01-20 18:26:22 +0100
committerSimon Ser <contact@emersion.fr>2020-01-20 18:26:22 +0100
commitb9a180b154fe3ba6e02fc3d7ac313d91d441014b (patch)
tree500d09dc3c749901428e5934f43356b3a1d10dc5
parenta66ef1059b29946e62fc1da7175109a386985ee7 (diff)
downloadalps-b9a180b154fe3ba6e02fc3d7ac313d91d441014b.tar.gz
alps-b9a180b154fe3ba6e02fc3d7ac313d91d441014b.zip
Disable DNS prefetching
-rw-r--r--server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.go b/server.go
index 526db9f..267f6ad 100644
--- a/server.go
+++ b/server.go
@@ -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)
}
})