feat: enable sub-resource integrity for assets
1 file changed, 7 insertions(+), 1 deletion(-)
changed files
M frontend/templates/blocks/search.gotmpl → frontend/templates/blocks/search.gotmpl
@@ -22,5 +22,11 @@ {{- end }} {{- end }} {{- define "head" }} - <script src="/static/search.js" defer></script> + {{- with (index .Assets.Scripts "static/search.js") }} + <script + src="{{ .URL }}" + defer + integrity="sha256-{{ .Base64SHA256 }}" + ></script> + {{- end }} {{- end }}