Closed 1nj0k closed 5 months ago
Thanks so much for opening your first PR here!
Totals | |
---|---|
Change from base Build 7071252829: | 0.0% |
Covered Lines: | 394 |
Relevant Lines: | 399 |
The core issue is that the anime.js 3.2.2 file on cdnjs and jsdelivr is different (which is rare situation). Modifying it this way will cause the SRI check on jsdelivr to fail. I think we need to roll back to the previous version of anime.js and release a new version of the theme.
Unpkg gives the same result as jsdelivr so the issue may come from cdnjs.
Maybe related: https://github.com/cdnjs/cdnjs/issues/14210
The core issue is that the anime.js 3.2.2 file on cdnjs and jsdelivr is different (which is rare situation).
It's really a rare problem. I also think rollback is a good idea.
cdnjs said they cannot ensure the compressed file is the same as that in the source code
Fixed a bug where the SRI hash is incorrect.
PR Checklist
PR Type
What is the current behavior?
https://theme-next.js.org/
The website can not display the content, and the console send an error message.
Issue resolved: After checking the page source code, I found there is a mistake with "https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.min.js" hash value. Then I change it from "sha256-tc4b48P1MPGS4PJXHRlChGCW1mEZy62jS/3JEsSHPzU=" to "sha256-vO75T5ZEgfdoDZXn+75ajCDTlFqSanVIdImKV423x6s=", it works.
What is the new behavior?
The website can display content after using the correct SRI hash value.