Get Cookie in InAppBrowser Ionic2

Someone has already been able to capture cookies after calling new InAppBrowser (). Create?

let ref =  new InAppBrowser().create('https://wwww.google.com', "_self", "location=no" );
      
      
      ref.executeScript({code:'document.cookie'}).then(cookie =>{
          
          this.test = cookie;
          
      });

I so hope this is not possible.

1 Like