# Error on loading local images

**URL:** <https://discourse.processing.org/t/error-on-loading-local-images/18855>\
**Category:** Beginners\
**Created:** [March 20, 2020, 11:03pm UTC](https://discourse.processing.org/t/error-on-loading-local-images/18855 "2020-03-20T23:03:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ej8000](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@ej8000](https://discourse.processing.org/u/ej8000)\
**Post date:** [March 20, 2020, 11:03pm UTC](https://discourse.processing.org/t/error-on-loading-local-images/18855/1 "2020-03-20T23:03:17Z")

</div>

I have in setup()  
**img = loadImage(“download.jpg”);**  
and in draw()  
**image(img,0, 0);**  
i,ve got this error(Cross-Origin Request Blocked: The **Same Origin Policy disallows reading the remote resource at file:///G:/p5/ex1/download.jpg**. (Reason: CORS request not http).

_!!! The code runs in web editor ,But it doesn’t run on my local browser._

---

<div class="post-metadata">

**Author:** ![ej8000](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@ej8000](https://discourse.processing.org/u/ej8000)\
**Post date:** [March 21, 2020, 9:13am UTC](https://discourse.processing.org/t/error-on-loading-local-images/18855/2 "2020-03-21T09:13:25Z")

</div>

Thank you great community  
I find the solution [https://github.com/processing/p5.js/wiki/Local-server](https://github.com/processing/p5.js/wiki/Local-server)
