Error message
read.php:1 Refused to run the JavaScript URL because it violates the following Content Security Policy directive: “script-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.
Solution:
Add unsafe-inline
in the header
header("Content-Security-Policy: script-src 'self' 'unsafe-inline';);
Read More:
- PHP: How to parse MHT file into HTML
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- PHP use __Sleep() and __wakeup() method serializes the object
- How to Hide index.php
- [Solved] PHP installation Phalcon expansion error
- PHP: The Difference between \Throwable, \Error and \Exception
- How to Solve PHP Error: no package’oniguruma’ found
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- Mac: Where is php.ini Location
- Mac PHP Fatal error: Class ‘Memcache’ not found
- PHP error in Windows: class’ mysqli ‘not found
- PHP php-config is not installed error in ubuntu 16 [How to Solve]
- [PHP] Solve PHP Call to undefined function ldap_connect()
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- PHP Error Object of class mysqli could not be converted to string in