[Fizz] Add nonce to rendered import maps (#37339)
Commit f4e439e authored Apply the render's script nonce to import maps emitted through the importMap server rendering option. This keeps configured import maps compatible with nonce-based Content Security Policies and uses the same escaped nonce value as other render-managed scripts. 1 parent 0d69e20 commit f4e439e 2 files changed Lines changed: 43 additions & 1 deletion File tree - packages - react-dom-bindings/src/server - react-dom/src/tests Lines changed: 9 additions & 1 deletion | Original file line number | Diff line number | Diff line change | | |---|---|---|---| | ||| 457 | 457 | | | 458 | 458 | | | 459 | 459 | | | 460 | | - | | | 460 | + | | | 461 | + | | | 462 | + | | | 463 | + | | | 464 | + | | | 465 | + | | | 466 | + | | | 467 | + | | | 468 | + | | 461 | 469 | | | 462 | 470 | | | 463 | 471 | | | | Lines changed: 34 additions & 0 deletions | Original file line number | Diff line number | Diff line change | | |---|---|---|---| | ||| 4520 | 4520 | | | 4521 | 4521 | | | 4522 | 4522 | | | | 4523 | + | | | 4524 | + | | | 4525 | + | | | 4526 | + | | | 4527 | + | | | 4528 | + | | | 4529 | + | | | 4530 | + | | | 4531 | + | | | 4532 | + | | | 4533 | + | | | 4534 | + | | | 4535 | + | | | 4536 | + | | | 4537 | + | | | 4538 | + | | | 4539 | + | | | 4540 | + | | | 4541 | + | | | 4542 | + | | | 4543 | + | | | 4544 | + | | | 4545 | + | | | 4546 | + | | | 4547 | + | | | 4548 | + | | | 4549 | + | | | 4550 | + | | | 4551 | + | | | 4552 | + | | | 4553 | + | | | 4554 | + | | | 4555 | + | | | 4556 | + | | 4523 | 4557 | | | 4524 | 4558 | | | 4525 | 4559 | | | | 0 commit comments
Comments
No comments yet. Start the discussion.