t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

Sweetalert unpkg cdn returns Refused to load the script 'https://unpkg.com/sweetalert/dist/sweetalert.min.js' #947

Open bipu1417 opened 3 years ago

bipu1417 commented 3 years ago

I am trying to import sweetalert.js in a JS file using - document.write(""); But it is returning the below error - Refused to load the script 'https://unpkg.com/sweetalert/dist/sweetalert.min.js' because it violates the following Content Security Policy directive: "script-src 'self' https://*.oracle.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback