Refused to execute inline event handler because...
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Refused to execute inline event handler because...
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:
Do you know good solution for this ?
Thanks a lot !
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.
Thanks a lot !
Re: Refused to execute inline event handler because...
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
and basic article..
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP