Browse Source

Add CSP

master
Gerben 4 years ago
parent
commit
6e33afb422
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      templates/base/head.tmpl

+ 1
- 0
templates/base/head.tmpl View File

@@ -2,6 +2,7 @@
<html lang="{{.Language}}"> <html lang="{{.Language}}">
<head data-suburl="{{AppSubUrl}}"> <head data-suburl="{{AppSubUrl}}">
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' 'unsafe-eval' data:;">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{if .Repository.Name}}{{.Repository.Name}}{{else}}{{if .Title}}{{.Title}} — {{end}}{{AppName}}{{end}}</title> <title>{{if .Repository.Name}}{{.Repository.Name}}{{else}}{{if .Title}}{{.Title}} — {{end}}{{AppName}}{{end}}</title>


Loading…
Cancel
Save