Toevoegen van crossorigin ivm CSP-header en relatie CORS en SRI

This commit is contained in:
Michael Boelen 2023-06-01 10:19:27 +02:00
parent f38b451bcd
commit 6bf2077e64

View file

@ -7,7 +7,4 @@
{{ end }}
{{ $js := .Scratch.Get "jslibs" | resources.Concat "js/combined-scripts.js" | resources.Minify | fingerprint }}
<script
src="{{ $js.RelPermalink }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"
integrity="{{ $js.Data.Integrity }}"
></script>
<script src="{{ $js.RelPermalink }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" crossorigin="anonymous" integrity="{{ $js.Data.Integrity }}"></script>