-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
p-pickList: Content-Security-Policy throws a inline-style error when [responsive]="true" #14847
Comments
Any idea @cetincakiroglu @mehmetcetin01140. Thanks!! :) |
Hi @victorgawk did you have any solution? |
unfortunately no 😢 |
Thanks for your reply. We have created a new issue giving more information and a reproducer here: Thanks! |
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding! |
Describe the bug
If Content-Security-Policy header is enabled and the user tries to render a p-pickList with
[responsive]="true"
, the browser throws a inline-style error.Related:
#14584
#14846
#13438
#12787
Environment
Add a CSP header enforcing style-src: 'self' in order to reproduce the error:
Reproducer
No response
Angular version
17.2.1
PrimeNG version
17.7.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
Chrome 121.0.6167.185
Steps to reproduce the behavior
<p-pickList>
is loaded / initialized.Expected behavior
Should have an option to add a nonce attribute to the component that is receiving the style, or not adding style at all.
The text was updated successfully, but these errors were encountered: