sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.55k stars 1.29k forks source link

fix: refactor inline styles in thumbnail plugin for CSP compatibility #1565

Closed ajuzp5 closed 9 months ago

ajuzp5 commented 12 months ago

Problem:

If we add Content-Security-Policy in the of our HTML file currently restricts inline styles with the directive style-src 'self';. This leads to a scenario where thumbnail images that rely on inline styling do not render correctly.

Visual Proof of Issue:

Screenshot 2023-11-24 at 3 26 37 PM
stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.