all repos — cgit @ 8a6f98afe944b434a614203c98691307ad9ccbc8

a hyperfast web frontend for git written in c

ui-shared: add content-security-policy header
la-ninpre leobrekalini@gmail.com
Mon, 30 Nov 2020 01:49:23 +0300
commit

8a6f98afe944b434a614203c98691307ad9ccbc8

parent

452a63636618022a1f5ba4fa6215d7dc0f402acc

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M ui-shared.cui-shared.c

@@ -783,6 +783,7 @@ html("<head>\n");

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);