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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![jang walia](https://secure.gravatar.com/avatar/f1a42d036c6bc2e8e166e1f2f6c64445?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
jang walia
7,717 Pointscors
i have written the jsx code as shown in the video but i got an error saying access to hml request to 'file:///C:/xampp/htdocs/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. please help
2 Answers
![Elias Flores](https://secure.gravatar.com/avatar/22b36edfbba615290470b14b3b5f229d?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Elias Flores
905 PointsTry to run:
python -m SimpleHTTPServer 8000
Then open a new tag on your browser and go to localhost:8000
![kennethbrent](https://secure.gravatar.com/avatar/a565f9204491cb36329850eab5dda01e?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
kennethbrent
Full Stack JavaScript Techdegree Graduate 22,638 PointsThis works! Although i thought we were able to use React locally without a server, but guess i'm wrong.
![ar14](https://secure.gravatar.com/avatar/e61e97883995da7b123b87a9aa240f39?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ar14
16,986 PointsIf you're using VSC you can also install the Live Server extension to fire up your app in a live server with one click.
L Haney
Front End Web Development Techdegree Student 10,263 PointsL Haney
Front End Web Development Techdegree Student 10,263 PointsHere is what I did: https://teamtreehouse.com/community/here-is-what-i-did-to-set-up-my-server-step-by-step-using-node-not-python