User-254703530 posted
Hi,
I was wondering if there is anyway to specify the integrity hash when using ScriptResourceDefinition in Global.asax ?
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js" integrity="sha384-vk5WoKIaW/vJyUAd9n/wmopsmNhiy+L2Z+SBxGYnUkunIxVxAv/UtMOhba/xskxh" crossorigin="anonymous"></script>
ScriptManager.ScriptResourceMapping.AddDefinition("jquery",
New ScriptResourceDefinition With {.Path = "~/Scripts/jquery-3.4.1.min.js",
.CdnPath = "https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js",
.CdnSupportsSecureConnection = True,
.LoadSuccessExpression = "jQuery"})
Thanks