title: React-electron app: react set cookie value
body: <p>I am building an electron-react app, and when I make requests to some URLs I get cookie values included in the response object.</p>
  <p>Then when I use other similar APIs, I have to send that cookie in the headers. So, I have to set the received cookie to the <code>electron.session</code>.</p>
  <p>However, because of electron js, I cannot set a cookie with <code>document.cookie = cookie</code>.</p>
  <p>How can I implement setting cookies?</p>
  <p><a href="https://i.stack.imgur.com/flKSX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/flKSX.png" alt="enter image description here" /></a></p>
  <p>When I use <code>session</code> in react.js, the folowing error appears
  <a href="https://i.stack.imgur.com/Ag8e4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ag8e4.png" alt="enter image description here" /></a></p>
  <p>I installed fs and path modules but did not fix anything</p>