Skip to content

[android][image] Add CookieJar to image request client#43257

Merged
alanjhughes merged 3 commits intomainfrom
@alanhughes/image/shared-cookies
Feb 19, 2026
Merged

[android][image] Add CookieJar to image request client#43257
alanjhughes merged 3 commits intomainfrom
@alanhughes/image/shared-cookies

Conversation

@alanjhughes
Copy link
Copy Markdown
Collaborator

Why

Closes #43229
Currently, cookies sent through fetch are not shared with image requests made by expo image. This is because we create our own client but don't configure it to use the global CookieManager.

How

Implement CookieJar, read and write cookies to the shared manager and add it to the OkHttpClient builder.

Test Plan

Tested in the provided repro

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Feb 19, 2026
@alanjhughes alanjhughes changed the title [android][image] Use CookieManager to request client [android][image] Add CookieManager to image request client Feb 19, 2026
@alanjhughes alanjhughes changed the title [android][image] Add CookieManager to image request client [android][image] Add CookieJar to image request client Feb 19, 2026
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Feb 19, 2026
@expo-bot
Copy link
Copy Markdown
Collaborator

expo-bot commented Feb 19, 2026

The Pull Request introduced fingerprint changes against the base commit: da8744c

Fingerprint diff
[
  {
    "op": "changed",
    "beforeSource": {
      "type": "dir",
      "filePath": "../../packages/expo-image/android",
      "reasons": [
        "expoAutolinkingAndroid"
      ],
      "hash": "e7f03fbc5f52732f66a401867fecb0ddb07534f1"
    },
    "afterSource": {
      "type": "dir",
      "filePath": "../../packages/expo-image/android",
      "reasons": [
        "expoAutolinkingAndroid"
      ],
      "hash": "cbf9f66cd9364ef40c91e0c1dc1eff74089fe57c"
    }
  }
]

Generated by PR labeler 🤖

@alanjhughes alanjhughes marked this pull request as ready for review February 19, 2026 09:48
@github-actions
Copy link
Copy Markdown
Contributor

Subscribed to pull request

File Patterns Mentions
packages/expo-image/** @lukmccall, @aleqsio, @tsapeta

Generated by CodeMention

@alanjhughes alanjhughes merged commit c558433 into main Feb 19, 2026
12 checks passed
@alanjhughes alanjhughes deleted the @alanhughes/image/shared-cookies branch February 19, 2026 11:15
benjaminkomen pushed a commit to benjaminkomen/expo that referenced this pull request Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[expo-image] [android] expo-image doesn't pass regular headers / cookies from the common react-native http stack

3 participants