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 PointsI think there is problem with react, when I open developer tool in chrome (F12) It shows 1 error
babel.min.js:24 Access to XMLHttpRequest at 'file:///C:/Users/Pilotech/Desktop/React/my-app/public/scoreboard/app.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
2 Answers
Steve Gallant
14,943 PointsBecause the URI starts with "file:///C:/", I'm guessing you are browsing to your file via the local Windows file system rather than running a local http server as previously described in the course. Make sure you are accessing the page via http in your browser, usually at http://localhost:8000 for the python method. Hope this helps!
Steve
Khumoyunmirzo Nosirov
8,689 Pointsthank you I did it I used wamp , and it works
Mike Hardy
Full Stack JavaScript Techdegree Graduate 16,511 PointsMike Hardy
Full Stack JavaScript Techdegree Graduate 16,511 PointsThanks Steve. I had the same issue and following the steps for "Running a simple local HTTP server" in the Teachers notes in a previous video was the answer.
Dominique Pearyer
503 PointsDominique Pearyer
503 PointsThank you thank you thank you! Your solution is the only one that worked and I've been searching for hours. For anyone who sees this and can't figure it out try these steps from the beginning on MacOs: