all repos — website @ 200701c1bddae4b9a854579ced35cb6aa325ad63

My website

move referrer-policy to HTTP header and harden
Alan Pearce alan@alanpearce.eu
Wed, 29 May 2024 17:47:27 +0200
commit

200701c1bddae4b9a854579ced35cb6aa325ad63

parent

a3fe5c2c5d96a32e34b4ee5b4a397927e2475321

M config.tomlconfig.toml
@@ -42,6 +42,7 @@ [extra.headers]
   cache-control = "max-age=14400"
   x-content-type-options = "nosniff"
+  referrer-policy = "strict-origin-when-cross-origin"
   strict-transport-security = "max-age=63072000; includeSubDomains; preload"
 
 [[menus.main]]
M templates/404.htmltemplates/404.html
@@ -4,7 +4,6 @@ <head>     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Site Title</title>
-    <meta name="referrer" content="no-referrer-when-downgrade" />
     <link
       rel="alternate"
       type="application/atom+xml"
M templates/homepage.htmltemplates/homepage.html
@@ -4,7 +4,6 @@ <head>     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Site Title</title>
-    <meta name="referrer" content="no-referrer-when-downgrade" />
     <link
       rel="alternate"
       type="application/atom+xml"
M templates/list.htmltemplates/list.html
@@ -4,7 +4,6 @@ <head>     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Site Title</title>
-    <meta name="referrer" content="no-referrer-when-downgrade" />
     <link
       rel="alternate"
       type="application/atom+xml"
M templates/post.htmltemplates/post.html
@@ -4,7 +4,6 @@ <head>     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title></title>
-    <meta name="referrer" content="no-referrer-when-downgrade" />
     <link
       rel="alternate"
       type="application/atom+xml"
M templates/tags.htmltemplates/tags.html
@@ -4,7 +4,6 @@ <head>     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>Site Title</title>
-    <meta name="referrer" content="no-referrer-when-downgrade" />
     <link
       rel="alternate"
       type="application/atom+xml"