Skip to content

Allow nonce attribute on script/style tags #5432

@nickclaw

Description

@nickclaw

The nonce attribute is helpful in increasing the coverage of a pages Content Security Policy by allowing some script tags to be evaluated inline without enabling 'unsafe-inline' over the entire page. Right now I believe the only way to create a script tag to with the nonce attribute is to use dangerouslySetInnerHTML on a parent element.

https://blog.mozilla.org/security/2014/10/04/csp-for-the-web-we-have/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions