move referrer-policy to HTTP header and harden
Alan Pearce alan@alanpearce.eu
Wed, 29 May 2024 17:47:27 +0200
6 files changed, 1 insertions(+), 5 deletions(-)
M config.toml → config.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.html → templates/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.html → templates/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.html → templates/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.html → templates/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"