mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 12:55:32 +00:00
layouts: add CORS policy to the script tag
This commit is contained in:
parent
95be508e27
commit
3fd2b76d92
|
@ -102,7 +102,7 @@
|
|||
</div>
|
||||
|
||||
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify | fingerprint }}
|
||||
<script src="{{ $mainJs.Permalink }}" integrity="{{ $mainJs.Data.Integrity }}"></script>
|
||||
<script src="{{ $mainJs.Permalink }}" integrity="{{ $mainJs.Data.Integrity }}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
{{- block "scripts" . }}{{- end }}
|
||||
|
||||
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
||||
|
|
Loading…
Reference in a new issue