Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKhumoyunmirzo Nosirov
8,689 Pointscan't connect to react
1)Access to script at 'https://unpkg.com/react-dom@16.7.0/umd/react-dom.development.js' (redirected from 'https://unpkg.com/react-dom@16/umd/react-dom.development.js') from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 2)GET https://unpkg.com/react-dom@16.7.0/umd/react-dom.development.js net::ERR_FAILED 3)app.js:75 Uncaught ReferenceError: ReactDOM is not defined at <anonymous>:92:1 at i (babel.min.js:24) at r (babel.min.js:24) at e.src.n.(anonymous function).l.content (https://unpkg.com/babel-standalone@6.26.0/babel.min.js:24:30503) at XMLHttpRequest.n.onreadystatechange (babel.min.js:24) (anonymous) @ app.js:75 i @ babel.min.js:24 r @ babel.min.js:24 e.src.n.(anonymous function).l.content @ babel.min.js:24 n.onreadystatechange @ babel.min.js:24 XMLHttpRequest.send (async) s @ babel.min.js:24 (anonymous) @ babel.min.js:24 o @ babel.min.js:24 u @ babel.min.js:24 f @ babel.min.js:1 (anonymous) @ babel.min.js:1
2 Answers
Matthew Griffith
21,003 PointsYou are running into a Cross-Origin Resource Sharing issue. CORS. Here is an article that may shed some light on what is going on with your CORS. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Khumoyunmirzo Nosirov
8,689 Pointsthank you so much . I got it
Khumoyunmirzo Nosirov
8,689 PointsKhumoyunmirzo Nosirov
8,689 Pointswhen I open with wamp , these appears in console what is wrong with that