Cookie header is being overwritten

:backhand_index_pointing_right: Bug Description


1. Summary

We are taking values from webView using CookieManager and setting them in the LocalStorage so LiveTv API calls can set them in the header.Cookie, they are being sent as .cookie and new values from setCookie are now in header.Cookie preventing our authentication cookie from being read by our apis

App Name: Philo
App Link on Amazon Appstore (found through Developer Console → Actions column in App List → View on Amazon.com): Philo: Live TV, Movies, Shows and Free Channels - App on Amazon Appstore

Bug Severity
Select one that applies

  • Impacts operation of app
  • Blocks current development
  • Improvement suggestion
  • Issue with documentation (If selected, please share the doc link and describe the issue)
  • Other

2. Steps to Reproduce

  1. create an API call to a server
 const response = await fetch(url, {
    method: options.method,
    body: options.body,
    headers: {
       Accept: 'application/json',
        'Content-Type': 'application/json',
        'User-Agent': USER_AGENT,
        Cookie: `Test=123; test2=abc`,
    },
  });

3. Observed Behavior

Explain what actually happened, noting any discrepancies or malfunctions.

Headers object will be 
    headers: {
       Accept: 'application/json',
        'Content-Type': 'application/json',
        'User-Agent': USER_AGENT,
        Cookie: [New Cookie values from set-cookie]
         cookie: `Test=123; test2=abc`,
    },

4. Expected Behavior

Describe what you expected the SDK to do under normal operation.

The Original Cookie values should be sent correctly as .Cookie

4.a Possible Root Cause & Temporary Workaround

Fill out anything you have tried. If you don’t know, N/A is acceptable

I've tried downgrading to xhr, and using other libraries like Apollo and Axios.

5. Logs or crash report

(Please make sure to provide relevant logs as attachment)
No crash created
```

6. Environment

Please fill out the fields related to your bug below:

  • SDK Version: 0.21.5245
  • App State: Both [Foreground & Background]
  • OS Information
    Please ssh into the device via kepler exec vda shelland copy the output from cat /etc/os-releaseinto the answer section below. Note, if you don’t have a simulator running or device attached kepler exec vda shell will respond with vda: no devices/emulators found
NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="1"
OS_MINOR_VERSION="1"
RELEASE_ID="10"
OS_VERSION="1.1"
BRANCH_CODE="TV Ship"
BUILD_DESC="OS 1.1 (TV Ship/518)"
BUILD_FINGERPRINT="4.0.194174.0(3072cab629675a74)/518N:user/release-keys"
BUILD_VARIANT="user"
BUILD_TAGS="release-keys"
BUILD_DATE="Fri Dec 12 05:48:51 UTC 2025"
BUILD_TIMESTAMP="1765518531"
VERSION_NUMBER="1001010051820"

7. Example Code Snippet / Screenshots / Screengrabs

Include any relevant code or component setup in React Native that can help reproduce the bug.

Example given in steps to reproduce

Hi @Tony,

Thank you for the detailed bug report on the Cookie header issue.

Our team is investigating this issue and will provide an update as soon as we have more information.

Thanks for helping us improve the Vega platform.

Warm regards,
Aishwarya

Hi @Tony,

Thank you for reporting this issue and working with our team to investigate it.

Based on your confirmation with Amazon offline, this issue has been resolved—possibly by an update to React Native Cookie’s fetch logic. Since your code is now functioning as expected, we’re resolving this thread.

If you encounter any further issues or have additional questions, please don’t hesitate to reach out.

Thanks for helping us improve the Vega platform!

Warm regards,
Aishwarya