Skip to content

ngx-bootstrap-positioning.mjs - CSP blocking inline styling #6654

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

Closed
klinges opened this issue May 30, 2024 · 1 comment
Closed

ngx-bootstrap-positioning.mjs - CSP blocking inline styling #6654

klinges opened this issue May 30, 2024 · 1 comment

Comments

@klinges
Copy link

klinges commented May 30, 2024

Using the Popover feature, when clicking the button to show the popup, my CSP is not allowing the inline styling to happen. Research shows this is due to the use of Javascript's setAttribute('style','') method. If the method of element.style is used, this won't flag. I'm not going to put "unsafe-inline" in my CSP.

Angular 16.2.6
ngx-bootstrap 11.0.2

Screenshot 2024-05-30 at 4 05 11 PM

@klinges klinges closed this as completed May 31, 2024
@evilaliv3
Copy link

@klinges : in @globaleaks we are incurring in the same situation.

How have you achieved to solve the problem in your case?

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

2 participants