aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-07-18 01:10:14 +0000
committerLaurent Bercot <ska@appnovation.com>2025-07-18 01:10:14 +0000
commit58466dabdba614fc4f2cca0276f9e7897833f834 (patch)
tree7df38a288dac89f7a66d75377a5faad9f259aaf2
parent632b9ff3d1b2509e5705bc7a820cdffd80d155de (diff)
downloadtipidee-58466dabdba614fc4f2cca0276f9e7897833f834.tar.gz
Add default Referrer-Policy header (same-origin)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/config/headers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/headers.c b/src/config/headers.c
index 2a34bba..0230e9d 100644
--- a/src/config/headers.c
+++ b/src/config/headers.c
@@ -28,6 +28,7 @@ static struct builtinheaders_s const builtinheaders[] =
{ .key = "Content-Length", .value = 0, .overridable = 0 },
{ .key = "Content-Security-Policy", .value = "default-src 'self'; style-src 'self' 'unsafe-inline';", .overridable = 1 },
{ .key = "Date", .value = 0, .overridable = 0 },
+ { .key = "Referrer-Policy", .value = "same-origin", .overridable = 1 },
{ .key = "Server", .value = "tipidee/" TIPIDEE_VERSION, .overridable = 1 },
{ .key = "Status", .value = 0, .overridable = 0 },
{ .key = "Transfer-Encoding", .value = 0, .overridable = 0 },