Refused to execute inline event handler because...

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MikaelNazarenko
Expert
Posts: 272
Joined: 27 Jun 2019, 16:19

Refused to execute inline event handler because...

Post by MikaelNazarenko » 19 May 2022, 16:32

Hi, dear Aimeos!

At some point ckeditor stopped to work, especially when click on 'Source' button and other buttons..

The error in console looks like this:

Code: Select all

Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self' https://cdnjs.cloudflare.com https://cdn.jsdelivr.net". 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.
Do you know good solution for this ?

Thanks a lot !

cyberdev
Posts: 13
Joined: 06 May 2022, 09:10

Re: Refused to execute inline event handler because...

Post by cyberdev » 19 May 2022, 19:05

Read about CSP, aimeos explain as well in laravel setup doc...https://aimeos.org/docs/latest/laravel/setup/
and basic article..
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

Post Reply