Skip to content

Inline style issue under CSP style-src 'self' #8166

Description

@zx12zx1212

Describe the bug

Hi,
In my current project, we are using ZAP for vulnerability scanning. Recently, it has flagged issues related to the Content Security Policy (CSP), so we need to enforce style-src 'self'. However, applying this policy causes layout issues because many components use inline styles.
I’d like to ask if anyone has encountered this problem before, and what solutions or workarounds are recommended?

Thanks in advance!

Image

Reproducer

No response

System Information

"primereact": "10.9.1"

Steps to reproduce the behavior

No response

Expected behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions