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 trial

JavaScript

Harshavardhan Gangavarapu
Harshavardhan Gangavarapu
13,727 Points

Error while previewing in web

babel.min.js:24 Access to XMLHttpRequest at 'file:///C:/Users/ACER/Downloads/1-first-steps-in-react/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. s @ babel.min.js:24

I also installed babel

This is the http server running locally in my windows 10 command prompt:

Microsoft Windows [Version 10.0.17763.615] (c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\ACER>python http.server python: can't open file 'http.server': [Errno 2] No such file or directory

C:\Users\ACER>python -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

I get the same issue. Anyone know the issue?