Skip to content

feat: Bridge AJAX request to the REST API #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Jul 31, 2025

What?

Bridge a VideoPress AJAX request to the matching REST API endpoint.

Why?

GutenbergKit lacks authentication cookies required for AJAX requests.

How?

Fix CMM-594. Override the window.wp.media.ajax global with conditional logic managing a request necessary for video uploads.

Testing Instructions

See relevant sibling PRs:

Accessibility Testing Instructions

N/A, no navigation changes.

Screenshots or screencast

video-press-upload.mp4

GutenbergKit lacks authentication cookies required for AJAX requests.
Copy link
Contributor

@kean kean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dcalhoun dcalhoun merged commit bc33c2a into trunk Aug 1, 2025
11 checks passed
@dcalhoun dcalhoun deleted the feat/bridge-ajax-request-to-rest-api branch August 1, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants