Skip to content

Add Nonce Feature for CSP Compatibility #245

@luigiaureagroup

Description

@luigiaureagroup

I'm adding CSP rules to my project and noticed that this package doesn't handle the nonce attribute.
The code returns the error here:
this.element.setAttribute(this.name,null!=t?t:"")

I tried both importing the inline script and compiling the npm package via webpack but nothing changes

I don't want to add unsafe-inline in my header, it would be safer and more convenient to have a way to inject the nonce attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions