summaryrefslogtreecommitdiff
path: root/src/config/headers.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-28 13:04:02 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-28 13:04:02 +0000
commit078e0fc6ca29a5917b43c0834e4a4f97b58e25de (patch)
treee25f6bd4f061ecda5502bf1f90763910a2af85e7 /src/config/headers.c
parent0c1ac7d2cbb15807c481d6b415ee3225aae626ca (diff)
downloadtipidee-078e0fc6ca29a5917b43c0834e4a4f97b58e25de.tar.xz
Add more forbidden headers
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/config/headers.c')
-rw-r--r--src/config/headers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/headers.c b/src/config/headers.c
index 9ea069f..31d3e69 100644
--- a/src/config/headers.c
+++ b/src/config/headers.c
@@ -22,10 +22,14 @@ struct builtinheaders_s
static struct builtinheaders_s const builtinheaders[] =
{
{ .key = "Accept-Ranges", .value = "none", .overridable = 0 },
+ { .key = "Allow", .value = 0, .overridable = 0 },
{ .key = "Cache-Control", .value = "private", .overridable = 1 },
{ .key = "Connection", .value = 0, .overridable = 0 },
+ { .key = "Content-Length", .value = 0, .overridable = 0 },
{ .key = "Content-Security-Policy", .value = "default-src 'self'; style-src 'self' 'unsafe-inline';", .overridable = 1 },
+ { .key = "Content-Type", .value = 0, .overridable = 0 },
{ .key = "Date", .value = 0, .overridable = 0 },
+ { .key = "Location", .value = 0, .overridable = 0 },
{ .key = "Referrer-Policy", .value = "no-referrer-when-downgrade", .overridable = 1 },
{ .key = "Server", .value = "tipidee/" TIPIDEE_VERSION, .overridable = 0 },
{ .key = "Status", .value = 0, .overridable = 0 },