Skip to content

Template renderer and CSP #7479

Closed
Closed
@jbudz

Description

@jbudz

What problem does this feature solve?

When context with state is provided to the template renderer an inline script is created. It may be useful to provide a nonce that gets attached to the script tag so an unsafe-inline CSP doesn't have to be enabled.

What does the proposed API look like?

renderer.renderToString({
  state: {},
  nonce: ''
})

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