Skip to content

[Remote] Use CORS proxy in embedded Playgrounds #2369

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 4 commits into from
Jul 22, 2025

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 14, 2025

Playground does not use the CORS proxy when its embedded on another site via an iframe. This PR changes that and defaults to using CORS proxy also in embeds.

Follows-up on #2368

Testing instructions

  • CI
  • Test CORS requests within Playground block after deployment

adamziel added 2 commits July 14, 2025 22:25
Playground does not use the CORS proxy when its embedded on another
site via an iframe. This PR changes that and defaults to using CORS
proxy also in embeds.

 ## Testing instructions

TBD
@adamziel adamziel changed the title [Client] Accept wasm.wordpress.net as an official origin [Remote] Use CORS proxy in embedded Playgrounds Jul 14, 2025
Base automatically changed from accept-wasm-wordpress-net-origin to trunk July 14, 2025 20:54
@brandonpayton
Copy link
Member

This seems like a good move. If the remote embeds CORS proxy support, does that mean the website and builder can stop passing a corsProxyUrl and get that for free?

@adamziel
Copy link
Collaborator Author

adamziel commented Jul 20, 2025

If the remote embeds CORS proxy support, does that mean the website and builder can stop passing a corsProxyUrl and get that for free?

Good spot! Yes, I'll update the PR to remove the explicit corsProxyUrl from those places.

@brandonpayton brandonpayton requested a review from a team as a code owner July 22, 2025 17:31
@brandonpayton
Copy link
Member

There is a built-npm-packages test failure for PHP 7.2 and the ES module test there, but it occurred before this PR. Let's merge this and then look at that failure.

@brandonpayton brandonpayton merged commit 8cd38a5 into trunk Jul 22, 2025
23 of 25 checks passed
@brandonpayton brandonpayton deleted the use-cors-proxy-in-embeds branch July 22, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants