aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index acd8ab5..425b16c 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -784,6 +784,7 @@ void cgit_print_docstart(void)
html("<title>");
html_txt(ctx.page.title);
html("</title>\n");
+ html("<meta http-equiv=\"content-security-policy\" content=\"default-src 'self'\"/>");
htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
if (ctx.cfg.robots && *ctx.cfg.robots)
htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots);