title: Can 'Set-Cookie' response headers be used to set cookies in Cordova?
body: <p>I am using Cordova to run my React application as an app on iOS and Android. For security reasons the app's API uses cookies, rather than local storage, to store tokens. These cookies are set with the 'Set-Cookie' response header and the HttpOnly flag so that the JavaScript never has access to the tokens. I want these cookies to be stored persistently in the app so that they are used in subsequent requests, even if the app has been closed and reopened.</p>
  
  <p>I understand that cookies <a href="https://github.com/apache/cordova-discuss/blob/master/FAQ.md#do-cookies-work-in-cordova-apps" rel="nofollow noreferrer">can't work in Cordova out of the box</a>, and I have seen plugins that set cookies from JavaScript, but is there any way that the 'Set-Cookie' headers in responses can be handled in Cordova so that the cookies can be stored in a secure place and used when required?</p>