Skip to content

Custom attributes in ReactInitJavaScript script tag #430

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

Closed
gunnim opened this issue Jul 30, 2017 · 0 comments
Closed

Custom attributes in ReactInitJavaScript script tag #430

gunnim opened this issue Jul 30, 2017 · 0 comments

Comments

@gunnim
Copy link
Contributor

gunnim commented Jul 30, 2017

Same as the now closed issue #334

Like the aforementioned post, I'm about to implement CSP on a site using ReactJS.NET.
For the inline script created by ReactInitJavaScript to work i need to add a nonce attribute to the script tag with a value that matches one in my CSP headers.

Currently I have created my own helper, similar in functionality to ReactInitJavaScript.
However, seeing as this configuration might become more and more common as time goes on, I think it might make sense to integrate into the project.

Do you agree?
And yes I'd be willing to submit a pull request :)

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

No branches or pull requests

1 participant