mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Don't add the crossorigin attribute unless we pass integrity. (#29112)
This commit is contained in:
parent
ebb1eea520
commit
d7a62b505c
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user