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: ''
})
@sodatea sodatea added the has PR label Jun 7, 2018
@vuejs vuejs deleted a comment Oct 3, 2018
@yyx990803 yyx990803 added this to Todo in 2.6 via automation Dec 6, 2018
@yyx990803 yyx990803 moved this from Todo to In progress in 2.6 Dec 6, 2018
@yyx990803 yyx990803 moved this from In progress to Todo in 2.6 Dec 6, 2018
@yyx990803 yyx990803 removed this from Todo in 2.6 Dec 20, 2018
@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