Set Cookie with InAppBrowser

#1

Hello,
Is it possible to open url with InAppBrowser and set cookie which I already have in local storage.
I know we can run JavaScript code with executeScript method. So can anyone please tell me how to set cookie with executeScript