next.js icon indicating copy to clipboard operation
next.js copied to clipboard

fix(next): add cross origin in react dom preload

Open syi0808 opened this issue 7 months ago • 6 comments

screenshot

Before Screenshot 2024-07-03 at 10 06 21 PM After Screenshot 2024-07-03 at 10 17 45 PM

What?

Add crossOrigin in argument to ReactDOM.preload options from Script component props.

Why?

Because we expect the crossOrigin props handed over to Script component to also get into the preload link tag.

How?

Add crossOrigin argument to preload function in Script tag. value from restProps.crossOrigin.

Fixes #65879

syi0808 avatar Jul 03 '24 13:07 syi0808