Bug: React 18 renderToPipeableStream missing support for nonce for bootstrapScripts and bootstrapModules #24883
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 18.1.0-next-af730436c-20220405
Steps To Reproduce
The current behavior
The renderToPipeableStream nonce is only applied to inline scripts (bootstrapScriptContent) in createResponseState().
The expected behavior
A strict-dynamic script-src CSP applies to both inline scripts and scripts with src. I would expect the nonce to also be applied to scripts with src. The change seems simple enough .The createResponseState() would look like this:
Please let me know if I am missing the reason why this was not implemented.
The text was updated successfully, but these errors were encountered: