Currently my bundles are using local copies of common libraries.
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/moment.min.js",
"~/Scripts/bootstrap-datetimepicker.min.js",
"~/Scripts/respond.js"));
I want to convert to using CDNs, and want to make sure I am adhearing to SRI by including the hash value. I've found plenty of articles for using a CDN in bundle config but nothing about how to include SRI hash, and the crossorigin tag when bundling.
Please assist me.
try this:
and add this line in
Global.asax.cs
insideApplication_BeginRequest
for allow crossorigin