Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

WordPress Playground is served in an iframe, and therefore it's not possible to use the Kit OAuth flow due to the CORS policy:

Screenshot 2025-06-12 at 11 59 06

This PR resolves by configuring the Plugin with an OAuth access + refresh tokens, obtained by using a v3 API Key and Secret. The PR also enables networking, which is required for API calls.

Screenshot 2025-06-12 at 11 59 39

Testing

Existing tests pass.

Checklist

@n7studios n7studios self-assigned this Jun 12, 2025
@github-actions
Copy link

WordPress Playground

🚀 Your PR has been built and is ready for testing in WordPress Playground!

Click here to test your changes in WordPress Playground

@n7studios n7studios requested review from a team, corydhmiller and noelherrick and removed request for a team June 16, 2025 15:42
@n7studios n7studios marked this pull request as ready for review June 16, 2025 15:42
@n7studios n7studios merged commit f45128a into main Jun 17, 2025
646 of 689 checks passed
@n7studios n7studios deleted the playground-oauth-tokens branch July 12, 2025 03:03
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.

3 participants