Skip to content

feat: Allow Android WebView admin-ajax.php CORS requests#45292

Draft
dcalhoun wants to merge 4 commits intofeat/editor-assets-endpoint-allows-videopressfrom
feat/allow-android-web-view-ajax-cors-requests
Draft

feat: Allow Android WebView admin-ajax.php CORS requests#45292
dcalhoun wants to merge 4 commits intofeat/editor-assets-endpoint-allows-videopressfrom
feat/allow-android-web-view-ajax-cors-requests

Conversation

@dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Sep 24, 2025

Ref CMM-713. Ref CMM-766. Ref CMM-767.

Proposed changes:

The Jetpack mobile app block editor relies upon Android WebViews for serving local Gutenberg files. Editor requests then originate from the https://android-app-assets.jetpack.com origin. To enable admin-ajax.php requests from the Android app, we must allow CORS requests from this origin.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

pbArwn-7AD-p2

Does this pull request change what data or activity we track or use?

No.

Testing instructions:

See the testing instructions in the sibling PR: wordpress-mobile/GutenbergKit#181

@dcalhoun dcalhoun added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] In Progress [Feature] WP REST API [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Sep 24, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the feat/allow-android-web-view-ajax-cors-requests branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack feat/allow-android-web-view-ajax-cors-requests

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2025

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: March 3, 2026
    • Code freeze: March 3, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control
Copy link

jp-launch-control bot commented Sep 24, 2025

Code Coverage Summary

No summary data is available for parent commit 8dd337f, so cannot calculate coverage changes. 😴

If that commit is a feature branch rather than a trunk commit, this is expected. Otherwise, this should be updated once coverage for 8dd337f is available.

Full summary · PHP report · JS report

@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from 7c65124 to 0eec284 Compare November 26, 2025 17:59
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 1e87e88 to 947871d Compare November 26, 2025 17:59
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from 0eec284 to 2ebdfb2 Compare January 12, 2026 15:39
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 947871d to 5c0702b Compare January 12, 2026 15:40
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from 2ebdfb2 to b5d50be Compare January 12, 2026 18:06
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 5c0702b to 0cc2139 Compare January 12, 2026 18:06
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from b5d50be to d56e487 Compare January 13, 2026 16:48
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 46ba2ef to 5d316d9 Compare January 13, 2026 16:49
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from d56e487 to cf08962 Compare January 13, 2026 17:22
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 5d316d9 to 67fa677 Compare January 13, 2026 17:22
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from cf08962 to ae35d6d Compare February 12, 2026 16:51
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from 67fa677 to a374c90 Compare February 12, 2026 16:51
@dcalhoun dcalhoun force-pushed the feat/editor-assets-endpoint-allows-videopress branch from ae35d6d to 8dd337f Compare February 13, 2026 15:18
The Jetpack mobile app block editor relies upon Android WebViews for
serving local Gutenberg files. Editor requests then originate from
the platform-default `https://appassets.androidplatform.net` origin. To
enable `admin-ajax.php` requests from the Android app, we must allow
CORS requests from this origin.
Use a domain owned by the Jetpack project.
The domain was updated in a previous commit.
@dcalhoun dcalhoun force-pushed the feat/allow-android-web-view-ajax-cors-requests branch from a374c90 to a599d22 Compare February 13, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] WP REST API [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant