Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data: image cause CSP header issues #2

Open
clarkwinkelmann opened this issue Jan 30, 2017 · 1 comment
Open

data: image cause CSP header issues #2

clarkwinkelmann opened this issue Jan 30, 2017 · 1 comment

Comments

@clarkwinkelmann
Copy link
Owner

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.

@clarkwinkelmann
Copy link
Owner Author

The data-image is also used for the triangle under the popup. This one is still used and disapears if CSP blocks it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant