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

Dynamic Dialog: CSP Errors #15995

Closed
SoyDiego opened this issue Jul 10, 2024 · 0 comments · Fixed by #15990
Closed

Dynamic Dialog: CSP Errors #15995

SoyDiego opened this issue Jul 10, 2024 · 0 comments · Fixed by #15990
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@SoyDiego
Copy link
Contributor

Describe the bug

There are several csp errors with the components below:

  • dynamic dialog

This happens due to wrong order of actions when appending the style elements to the DOM.

How it's now:

1- a style element is created in TS
2- a style element is added to the DOM
3- nonce attribute is added to the DOM

How it should be:

1- a style element is created in TS
2- the nonce attribute is added to the style element
3- style element is added to the DOM

Environment

Reproducer

Angular version

18

PrimeNG version

Last version

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@SoyDiego SoyDiego added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 10, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 10, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.4 milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants