aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransuz <ansuz@transitiontech.ca>2018-11-06 18:23:13 +0530
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-11-06 16:41:06 -1000
commitea4dd667048524c4d93173ec63443dcd060ccf87 (patch)
tree9904351711ff2113f381d85291306317040fb9af
parent965049969b48dfd28f8228ac7f30b1ede804768e (diff)
downloadpatchfoo-ea4dd667048524c4d93173ec63443dcd060ccf87.tar.gz
patchfoo-ea4dd667048524c4d93173ec63443dcd060ccf87.zip
don't send referrer headers
-rw-r--r--lib/serve.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/serve.js b/lib/serve.js
index c51a331..a58fb1a 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1635,6 +1635,7 @@ Serve.prototype.wrapPage = function (title, searchQ) {
var done = multicb({pluck: 1, spread: true})
done()(null, h('html', h('head',
h('meta', {charset: 'utf-8'}),
+ h('meta', {name: 'referrer', content: 'no-referrer'}),
h('title', title),
h('meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}),
h('link', {rel: 'icon', href: render.toUrl('/static/hermie.ico'), type: 'image/x-icon'}),