Skip to content

Doujindesu (ID): Fix Cloudflare failures when using image proxies#95

Open
MuhamadSyabitHidayattulloh wants to merge 1 commit into
CI-PRfrom
fix-doujindesu-image-proxy-14461961185366794517
Open

Doujindesu (ID): Fix Cloudflare failures when using image proxies#95
MuhamadSyabitHidayattulloh wants to merge 1 commit into
CI-PRfrom
fix-doujindesu-image-proxy-14461961185366794517

Conversation

@MuhamadSyabitHidayattulloh

Copy link
Copy Markdown
Owner
  • Remove x-app-secret from global headers to prevent it being sent to image proxies.
  • Add an interceptor to inject x-app-secret only for API requests (path contains /api/).
  • Inject browser-like headers (Accept, Sec-Fetch-*) for non-API requests (images/proxies) to improve Cloudflare bypass.
  • Remove redundant imageDomains whitelist.
  • Bump version code to 19.

Checklist:

  • Updated versionCode value in build.gradle.kts
  • Updated baseVersionCode in build.gradle.kts (if updated multisrc theme code)
  • Referenced all related issues in the PR body (e.g. "Closes #xyz")
  • Set the contentWarning configuration in build.gradle.kts appropriately
  • Have not changed source names
  • Have explicitly kept the id if a source's name or language were changed
  • Have tested the modifications by compiling and running the extension through Android Studio
  • Have removed web_hi_res_512.png when adding a new extension
  • This PR is AI-assisted, I have reviewed the changes manually and confirmed they are not slop

- Remove `x-app-secret` from global headers to prevent it being sent to image proxies.
- Add an interceptor to inject `x-app-secret` only for API requests (path contains `/api/`).
- Inject browser-like headers (`Accept`, `Sec-Fetch-*`) for non-API requests (images/proxies) to improve Cloudflare bypass.
- Remove redundant `imageDomains` whitelist.
- Bump version code to 19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant