Search
Clear search
Close search
Main menu
Google apps
Groups
Sign in
Groups
SquishIt
Conversations
About
Send feedback
Help
How to add remote javascript with Sub Resource Integrity
55 views
Skip to first unread message
Amit Pandey
unread,
Jan 8, 2021, 6:51:33 AM
1/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SquishIt
Hi all,
I am trying to add remote javascript in my web application (Asp.Net C#) with sub resource integrity (SRI) but not able to add it.
Original Syntax:
<script src="
https://cdnjs.cloudflare.com/ajax/libs/validator/13.5.2/validator.min.js
" integrity="
sha512-vZEoK8xRncku4g5GANHh5zobUjeCMbZkSEahrADeAcRlk/1Ignf8sAKojkV4RZLkPw145+ILJFisI2pnjsPtGQ==
" crossorigin="anonymous"></script>
my code:
<%= Bundle.JavaScript()
.Add("~/js/jquery-3.1.0.js")
.
AddRemote
("~/js/fg.js", "
https://cdnjs.cloudflare.com/ajax/libs/validator/13.5.2/validator.min.js
")
.Render("~/js/combined_#.js")
%>
Unable to find any syntax to add
integrity
in
AddRemote()
syntax. please help me on this.
Thanks.
Reply all
Reply to author
Forward
0 new messages