How to Add Dynamic Images as Background Without Violating CSP? #15385
Unanswered
MonaAghili
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To dynamically set an image as a background for a component, one approach is using inline styles, like this:
However, this method can run into issues when Content Security Policy (CSP) is enabled, as CSP often blocks inline styles for security reasons. So, Could you suggest alternative solutions to dynamically set background images?
Beta Was this translation helpful? Give feedback.
All reactions