Skip to content

[✨] nonce on styles #263

@tzdesign

Description

@tzdesign

Is your feature request related to a problem?

No

Describe the solution you'd like

I know that unsafe-inline in in CSP for style tags is totally ok, but I wish to have the possibility to have the nonce there anyway.

The style-tags should render with nonce if the shared map has a value for @nonce set like:

ev.sharedMap.set('@nonce', nonce);

I would do this myself, but _appendHeadStyle is so basic without additional data than ID and style, that I have no idea how to get the global context here.

Describe alternatives you've considered

unsafe-inline is ok, also suggested by google.

If you do online-banking software or similar high security apps, It would be good to have all tags secured by nonce.

Additional context

No response

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