# Unhandled rejection Error: Invalid URI "/"

**URL:** <https://forum.ionicframework.com/t/unhandled-rejection-error-invalid-uri/109489>\
**Category:** ionic-v3\
**Created:** [October 20, 2017, 3:41pm UTC](https://forum.ionicframework.com/t/unhandled-rejection-error-invalid-uri/109489 "2017-10-20T15:41:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![quyle1703](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/quyle1703/32/116112_2.png) [@quyle1703](https://forum.ionicframework.com/u/quyle1703)\
**Post date:** [January 17, 2018, 5:53pm UTC](https://forum.ionicframework.com/t/unhandled-rejection-error-invalid-uri/109489/3 "2018-01-17T17:53:13Z")

</div>

You can get through this very easy! Let’s follow me right now

1. Create a shortcut on your desktop  
 ![1](https://global.discourse-cdn.com/ionicframework/original/3X/d/0/d06cb723fbec7c93803022630ed45c120de54340.jpg)
2. Right-click on the shortcut and click Properties  
 ![2](https://global.discourse-cdn.com/ionicframework/original/3X/0/6/0671d437ec61bb3ffa27bb180fd0088e7e812254.jpg)
3. Edit the Target property  
 ![3](https://global.discourse-cdn.com/ionicframework/original/3X/a/8/a8b86899570f0e2d5fa3b95cd809741e1d0a8838.jpg)
4. Set it to “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” --disable-web-security --user-data-dir=“C:/ChromeDevSession”  
 ![4](https://global.discourse-cdn.com/ionicframework/original/3X/5/b/5b272854b233bf75f9cb3384ceb01150902eb70e.jpg)
5. In VIsual Studio Code, run ionic serve -l  
 ![5](https://global.discourse-cdn.com/ionicframework/original/3X/a/d/ade624239f9d77d904379a7bcf0e59a854b65ab7.jpg)
6. You’re gonna see new tab open [http://localhost:8100/ionic-lab](http://localhost:8100/ionic-lab). You should be aware that this link is opened in the normal chrome tab, not the “disable-web-security” chrome we have set up.  
 ![6](https://global.discourse-cdn.com/ionicframework/original/3X/f/4/f46f396c051372f47a9171a1025a12be9d3729b4.jpg)
7. Double click to the shortcut that we have set up to open the “disable-web-security” chrome tab. Then paste [http://localhost:8100/ionic-lab](http://localhost:8100/ionic-lab) into this tab.  
 ![7](https://global.discourse-cdn.com/ionicframework/original/3X/9/2/92167438826d86957882ee2a047303b000712397.jpg)

So the reason that we get multiple errors when working with woo-commerce-api is this “web-security” by Google. Then you just disable it and you actually don’t need any CORS Extensions. So remove them right now if you have installed.

And this solution i write for people who learn this course [https://www.udemy.com/ionic-3-apps-for-woocommerce-build-an-ecommerce-mobile-app/](https://www.udemy.com/ionic-3-apps-for-woocommerce-build-an-ecommerce-mobile-app/). This is an ionic e-commerce app that using woo-commerce-api to set and get data from Wordpress (local or live server). If you have trouble in other language not ionic, it still works fine.

Actually i have done a lot of searchings on Google to find this solution. I hope this helps all of you. Now, i need to go to bed because tomorrow i have a final report about this ionic project with my lecturer 😃

See ya!  
Quy Le

---

_[View the full topic](https://forum.ionicframework.com/t/unhandled-rejection-error-invalid-uri/109489)._
