0
Fork 0
mirror of https://codeberg.org/NoGitHub/nogithub.codeberg.page.git synced 2024-12-22 07:02:58 -05:00

fix CSP header and referrer policy

closes #5
This commit is contained in:
Twann 2023-08-10 19:22:04 +02:00
parent db80d941cd
commit 37c14b9bac
No known key found for this signature in database
GPG key ID: A964862B572E3094

View file

@ -4,13 +4,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<meta name="referrer" content="no-referrer">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self'; script-src 'none'; object-src 'none'; style-src 'self' 'unsafe-inline'; require-trusted-types-for 'script'; base-uri 'none'; frame-ancestors 'self'; form-action 'self';">
{{- partial "favicon.html" . -}}
<title>{{- block "title" . }}{{ with .Title }}{{ . }}{{ end }}{{- end }}</title>
{{- partial "seo_tags.html" . -}}
<meta name="referrer" content="no-referrer-when-downgrade">
<meta name="referrer" content="no-referrer">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}