# Calling ipfs-html-client add on browser leads to CORS error

**URL:** <https://discuss.ipfs.tech/t/calling-ipfs-html-client-add-on-browser-leads-to-cors-error/11342>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [May 23, 2021, 5:54am UTC](https://discuss.ipfs.tech/t/calling-ipfs-html-client-add-on-browser-leads-to-cors-error/11342 "2021-05-23T05:54:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinhongkuan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jinhongkuan/32/5081_2.png) [@jinhongkuan](https://discuss.ipfs.tech/u/jinhongkuan)\
**Post date:** [May 23, 2021, 5:54am UTC](https://discuss.ipfs.tech/t/calling-ipfs-html-client-add-on-browser-leads-to-cors-error/11342/1 "2021-05-23T05:54:01Z")

</div>

I created a simple reactjs app that allows user to upload an image and upload it to ipfs through using the ipfs-html-client library. I have an ipfs node running on /ipv4/127.0.0.1/tcp/5001. However, despite adding the following configurations through my IPFS GUI interface, I still get the error “No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.”.

In my js code, I have the following line:  
this.ipfs = ipfsClient.create(‘/ip4/127.0.0.1/tcp/5001’)

I am out of ideas of how to move forward. Any help will be greatly appreciated!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/0/0ee0d1f91603a7b3f673e5e66e785e7ab575011a.png)
