aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-07-23 17:47:33 +0300
committerGitHub <[email protected]>2019-07-23 17:47:33 +0300
commitd7a62b505c495995b1a6eda9f3215ee01d0e97c1 (patch)
treee5477c192bc4f77592389cf812f7fc2596205a44
parentebb1eea52082d0909bf9013608a65028b6afca20 (diff)
downloadbootstrap-d7a62b505c495995b1a6eda9f3215ee01d0e97c1.tar.xz
bootstrap-d7a62b505c495995b1a6eda9f3215ee01d0e97c1.zip
Don't add the crossorigin attribute unless we pass integrity. (#29112)
-rw-r--r--site/layouts/_default/examples.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html
index ee3a5d42e..5e2e58ea8 100644
--- a/site/layouts/_default/examples.html
+++ b/site/layouts/_default/examples.html
@@ -50,7 +50,7 @@
{{- end }}
{{ range .Page.Params.extra_js -}}
- <script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} integrity="{{ . }}"{{ end }} crossorigin="anonymous"></script>
+ <script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end }}></script>
{{- end -}}
{{- end }}
</body>