oqtane.framework: [BUG] Integrity error when loading external js resource
Oqtane Info
Version - 5.2.4 Render Mode - Static Interactivity - Server Database - SQL Server
Describe the bug
Sometimes when loading a js external resource, it fails due to ‘integrity’ issues with the computed hash. For example, I’m using Swiper.js and including it from its cdn:
new Resource {
ResourceType = ResourceType.Script,
Url = "https://cdn.jsdelivr.net/npm/swiper@11/swiper-element-bundle.min.js",
CrossOrigin = "anonymous",
Location = ResourceLocation.Body,
Reload = true
}
(Swiper js installation instructions do not include the integrity)
And I’ve got this several times, although it’s inconsistent and I don’t know yet the cause:
Also note that this happened both in an Azure deployment and local environment.
This results in failing to import the module:
Expected Behavior
Steps To Reproduce
Anything else?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 56 (56 by maintainers)
I am going to close this issue as I believe the original issue has now been resolved