diff --git a/packages/next/src/client/script.tsx b/packages/next/src/client/script.tsx index 6c3537df10999..a722246ee6c10 100644 --- a/packages/next/src/client/script.tsx +++ b/packages/next/src/client/script.tsx @@ -332,8 +332,13 @@ function Script(props: ScriptProps): JSX.Element | null { ReactDOM.preload( src, restProps.integrity - ? { as: 'script', integrity: restProps.integrity, nonce } - : { as: 'script', nonce } + ? { + as: 'script', + integrity: restProps.integrity, + nonce, + crossOrigin: restProps.crossOrigin, + } + : { as: 'script', nonce, crossOrigin: restProps.crossOrigin } ) return (