A JsDelivr CDN is Not Working?
Hey guys, I need help. I think it has something to do with the CDN for the Swiper JS CSS file. I have tested this exact code on several other IDEs and it runs perfectly fine, without errors or CDN failures. However, in the KA IDE, as you can see, the program is not running well. The Swiper CSS that should be delivered from the CDN is not being delivered, leading to the ugly result above. Here is a link to my project:
https://www.khanacademy.org/computer-programming/new-webpage/5715765078441984
I have an error message in my console reading:
[Error] Refused to load https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css because it does not appear in the style-src directive of the Content Security Policy.
I totally get the security policy KA has for importing external code. However, as you can see, this is jsdelivr, one of the permitted cdns for KA, so it really puzzles me as to why I get this message.
I have tried other cdns, but none have this exact updated version of Swiper, which is essential for me to get this program up and running. I would really appreciate any help you guys can provide. I read this article on KA support, and I suspect I have a similar issue, as I am also trying to import a stylesheet via jsdelivr:
https://support.khanacademy.org/hc/en-us/community/posts/30468933061005-CSS-not-working
Any help would be greatly appreciated. Thanks in advance!
Nicolas
Vous devez vous connecter pour laisser un commentaire.