mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Don't add the crossorigin attribute unless we pass integrity. (#29112)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user