Content Security Policy Compatibility

Author: adhip94Created Oct 11, 2018Updated Jun 6, 2025

In my project I have given the following meta tag (as shown in the screenshot followed):

<meta http-equiv="Content-Security-Policy" content="default-src http:">

image

When I load the page I get the following errors in my console:

image

Anyone faced this issue before?

Also BTW the name of my js file is sweetalert.min.js but the file content contains the unminified js!