Browsing to localhost URL using inappBrowser

I’m currently trying to browse localhost url using th inappbrowser but this is the error I get:
Cannot GET / and this is my ts and html:

<ion-content padding>
      <button ion-button (click)="openWithInAppBrowser('')">Open with In App browser</button>
public openWithInAppBrowser(url : string){
    let target = "_blank";

How can I browse the localhost url?