Support

Admin Tools

#38883 Admin Tools CSP settings for EasyBlog

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.2.9
PHP version
8.1
Admin Tools version
7.3.2

Latest post by tampe125 on Wednesday, 19 April 2023 05:02 CDT

abilityfirst

I've been getting an error when trying to use EasyBlog's code block facility giving error: Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self'".

I've experimented with Admin Tools and if in the .htaccess Maker I switch off "Disable client-side risky behavior in frontend static content" then it works correctly. Of course I don't want to switch this off but rather just set an exception. I put the path it complains about in an exception as follows:

<If "%{REQUEST_URI} == '/media/com_easyblog/scripts/composer-6.0.10.min.js'">
    <IfModule mod_headers.c>
        Header always unset Content-Security-Policy
    </IfModule>
</If>

But this has no effect. I appreciate EasyBlog isn't your component, but is there any guidance you can give to help with what I need to do?

Thanks.

tampe125
Akeeba Staff

Hello,

I think it really depends on how they are adding that javascript file to Joomla. If that's the only component that is causing issues, I'm afraid there's little we can do.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!