Avoid use of eval() and replace it
The use of the eval() can be slow and insecure, so maybe it's better to avoid and replace it.
More info on:
After it is implemented it should be possible to use (in nginx):
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'";
Now 'unsafe-eval' still needed in default-src
Updated by Peter Proell over 5 years ago
There is still (7.6) CSP Issues in the backend (/typo3).
We should add a fitting CSP to the .htaccess in /typo3. Currently I am adding
Header set Content-Security-Policy "default-src * 'unsafe-eval' 'unsafe-inline';
in /typo3/.htaccess to overrule the more strict CSP of the website itself and make the backend work as well.
It would be a nice security feature if the TYPO3 backend would support a stricter CSP.