title: How can I send a cookie via node-fetch
body: <p>I recently started to work with the roblox api, It's been going good so far but I can't login. I tried to set the cookie by doing <code>apiCall.headers.set-cookie = cookie</code>, But that doesn't seem to work. How can I solve this issue?</p>
  <p>Would I have to get set-cookie then edit it? i.g</p>
  <pre class="lang-js prettyprint-override"><code>const cookieSet = await apiCall.headers.get(&quot;set-cookie&quot;)
  cookieSet = cookie
  </code></pre>
  <p>If I made it difficult to understand, I'll try to make it more clear
  How would I post a cookie to a roblox API?</p>
  <p>My code:</p>
  <pre class="lang-js prettyprint-override"><code>
      if (!cookie.startsWith(&quot;_|WARNING:&quot;)) {
          throw new Error(&quot;Make sure your token is correct&quot;)
      }
      const cookies = {
          headers: {
              cookie: cookie
          }
      }
  
      await fetch(&quot;https://www.roblox.com&quot;, cookies)
      const thing = await fetch('https://api.roblox.com/currency/balance', cookies).then(res =&gt; res.json())
      console.log(thing)
  </code></pre>
  <p>Thing outputs : <code>{ errors: [ { code: 403, message: 'Forbidden' } ] }</code></p>