From 362ade489a0be22fccd8d625eaec42615d0723fb Mon Sep 17 00:00:00 2001 From: dimmageiras Date: Fri, 19 Dec 2025 10:15:35 +0000 Subject: [PATCH 1/6] fix: pass nonce to importmap script when using subResourceIntegrity When unstable_subResourceIntegrity is enabled, the importmap script tag was missing the nonce attribute, causing CSP violations when strict Content Security Policy is enforced without 'unsafe-inline'. This fix ensures the nonce attribute is properly passed to the importmap script element, allowing applications to use strict CSP policies. Fixes #14252 --- packages/react-router/lib/dom/ssr/components.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-router/lib/dom/ssr/components.tsx b/packages/react-router/lib/dom/ssr/components.tsx index 57edd93007..9f6bf80124 100644 --- a/packages/react-router/lib/dom/ssr/components.tsx +++ b/packages/react-router/lib/dom/ssr/components.tsx @@ -903,6 +903,7 @@ import(${JSON.stringify(manifest.entry.module)});`;