Skip to content
Snippets Groups Projects
Commit bf7919f6 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

csp

parent 657a2fc4
No related branches found
No related tags found
No related merge requests found
{{- with site.Data.website.external_domains -}} {{ if not site.Params.search.active }}
<meta http-equiv="Content-Security-Policy" {{- with site.Data.website.external_domains -}}
content="default-src 'self' <meta http-equiv="Content-Security-Policy"
{{ delimit . " " }} content="default-src 'self'
{{ if not hugo.IsProduction }} {{ delimit . " " }}
'unsafe-inline' {{ if not hugo.IsProduction }}
{{ end }} 'unsafe-inline'
{{ if site.Params.search.active }} {{ end }}
'wasm-unsafe-eval' 'unsafe-eval' {{ if site.Params.search.active }}
{{ end }}; 'wasm-unsafe-eval'
" /> {{ end }};" />
{{- end -}}
{{- end -}} {{- end -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment