The EmojiOne Area plugin uses a data: image in the CSS for the default button.
In my extension this default icon is hidden and another is used with the core icon() helper.
But the image is still in the CSS and still triggers CSP error if data: is not allowed by the img-src rule. It does not prevent the use of the plugin, but it will spam the CSP report URI if enabled.
It might be a good idea to extract the useful parts of the CSS into extension.less and not import all the original rules.
The EmojiOne Area plugin uses a
data:
image in the CSS for the default button.In my extension this default icon is hidden and another is used with the core
icon()
helper.But the image is still in the CSS and still triggers CSP error if
data:
is not allowed by theimg-src
rule. It does not prevent the use of the plugin, but it will spam the CSP report URI if enabled.It might be a good idea to extract the useful parts of the CSS into
extension.less
and not import all the original rules.