Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template renderer and CSP #7479

Closed
jbudz opened this issue Jan 19, 2018 · 1 comment
Closed

Template renderer and CSP #7479

jbudz opened this issue Jan 19, 2018 · 1 comment

Comments

@jbudz
Copy link

jbudz commented Jan 19, 2018

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: ''
})
@yyx990803
Copy link
Member

Closed via #8047

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants