Comments (7)
@ingmarh thanks for reporting. yes we should be using the nonce on the preload if it was present on the underlying script.
@liuyenwei if you want to take a pass at putting together a PR that's be great. I'll review. If you don't think you will be able to provide one this week I'll take care of it soon. let me know if you intend to (no pressure either way)
from react.
cc @gnoff
from react.
I was testing 18.3.0-canary-a389046a5-20230512
and also ran into this same issue.
Just to add onto the use case in the initial post - this also happens for preload links which are generated for React.lazy
components.
I'm happy to take a pass at pushing up a PR for this if there is no disagreement that this should be the expected behavior.
from react.
@gnoff sounds good - I can work on that this week 👍
from react.
from react.
Closing per #26826 (review).
from react.
I can confirm that the issue is fixed with the latest canary, 18.3.0-canary-535c038d1-20230522
.
Thank you for the fix, @liuyenwei.
@gnoff Thanks for your additional comment #26826 (review). It makes a lot of sense to me.
from react.
Related Issues (20)
- Are you going to make React dead in your hand? HOT 5
- Bug: Inline style backgroundImage and css property background-image are casuing browsers like Firefox and Chrome to abort the loading of the image(both browsers tested).
- Bug: React package does not support Role=”table” HOT 2
- Bug: Name property is not defined for option in the animation color dropdown. HOT 2
- Bug: File input element missing cancel event handler HOT 4
- Bug:
- Subject: Optimization Proposal Code Initialization Enhancement for Improved Performance HOT 1
- React teams – Thank you for 2023 HOT 7
- Feature Request: `useRemount()` hook HOT 9
- I have this issues help me with this HOT 2
- Bug: Deployment issue with vite.app on github HOT 2
- Bug: `undefined` within props is not faithfully deserialized from RSC payload HOT 6
- eslint react-hooks/exhaustive-deps rule should have fine grained ignores HOT 1
- Help:How to call a child component's method from the parent component without changing any logic of the child component?怎么在不改变子组件任何逻辑的情况下,在父组件调用子组件的方法? HOT 3
- [DevTools Bug]: Command PhaseScriptExecution failed with a nonzero exit code HOT 1
- Feature Request: Reset form inside of Server Component or Action HOT 10
- Bug: submitting form clears fields unnecessarily despite using preventDefault HOT 3
- Bug: the <textarea> component's ValidityState.tooShort is incorrect when component is controlled and the value is passed in via the value prop HOT 2
- Why react-dom/server will automatic reorder elements in head
- useRef: Counting renders doesn´t work as expected in React neither 18.0.1 nor 18.0.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.