fix: update content security headers

This commit is contained in:
Henk Verlinde 2021-03-16 15:39:01 +01:00
parent 92798c92cd
commit d1008a7366
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,8 @@
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'self'; frame-ancestors https://jamstackthemes.dev; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' Content-Security-Policy: default-src 'self'; frame-ancestors https://jamstackthemes.dev; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' data:; script-src 'self' 'nonce-D9lYHmnDA/pVyXs6HQZq4gBs7gwpDOjyJz/jQNYQ/ziWEj7+xYf9zOwDw6kmrhYc
gwPqbqBXeoOEfPXt9EiIyQ=='; style-src 'self'
X-Frame-Options: SAMEORIGIN X-Frame-Options: SAMEORIGIN
Referrer-Policy: strict-origin Referrer-Policy: strict-origin
Feature-Policy: geolocation 'self' Feature-Policy: geolocation 'self'

View File

@ -61,7 +61,8 @@
{{ end -}} {{ end -}}
{{ if .Site.Params.options.kaTex -}} {{ if .Site.Params.options.kaTex -}}
<script src="{{ $katex.Permalink }}" defer></script> <script src="{{ $katex.Permalink }}" defer></script>
<script src="{{ $katexAutoRender.Permalink }}" onload="renderMathInElement(document.body);" defer></script> <script src="{{ $katexAutoRender.Permalink }}" onload="renderMathInElement(document.body);" nonce="D9lYHmnDA/pVyXs6HQZq4gBs7gwpDOjyJz/jQNYQ/ziWEj7+xYf9zOwDw6kmrhYc
gwPqbqBXeoOEfPXt9EiIyQ==" defer></script>
{{ end -}} {{ end -}}
{{ if .Site.Params.options.flexSearch -}} {{ if .Site.Params.options.flexSearch -}}
<script src="{{ $index.Permalink }}" defer></script> <script src="{{ $index.Permalink }}" defer></script>