Skip to content

Preinits should support a nonce option#26744

Merged
gnoff merged 1 commit intofacebook:mainfrom
gnoff:preinit-nonce
Apr 28, 2023
Merged

Preinits should support a nonce option#26744
gnoff merged 1 commit intofacebook:mainfrom
gnoff:preinit-nonce

Conversation

@gnoff
Copy link
Collaborator

@gnoff gnoff commented Apr 28, 2023

Currently there is no way to provide a nonce when using ReactDOM.preinit(..., { as: 'script' })

This PR adds nonce?: string as an option

While implementing this PR I added a test to also show you can pass integrity. This test isn't directly related to the nonce change.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants