mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-24 03:35:38 +01:00
layouts: add CORS policy to the script tag
This commit is contained in:
parent
95be508e27
commit
3fd2b76d92
@ -102,7 +102,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify | fingerprint }}
|
{{ $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 }}
|
{{- block "scripts" . }}{{- end }}
|
||||||
|
|
||||||
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user