Category: javascript

PHP/Apache: Refused to load the google "www.gstatic.com/charts/loader.js" script due to Content Security Policy

I am coding a PHP view that display Google charts, at DocumentRoot of Apache, in a single HTML it works, but when I put the same code inside the PHP page, the browser throws an exception like so: It happens…

Symfony Webpack-Encore minify Js and CSS

I want minify all css and js of my project in symfony. in Symfony 3 I use Assetic for JS like this as simple: {% javascripts ‘@AppBundle/Resources/public/js/*’ ‘@AcmeBarBundle/Resources/public/js/form.js’ ‘@AcmeBarBundle/Resources/public/js/calendar.js’ %} <script src="{{ asset_url }}"></script> {% endjavascripts %} and for CSS…