How to set cookies in ionic inappbrowser

Hi all,
I need to open a url in ionic inappbrowser and also set some cookies to maintain the session for authentication. Can any one help me how to pass cookies or headers in the inappbrowser along with the url.