Skip to content
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

CORS Error when using ?blueprint-url reference to github.com #2148

Open
bph opened this issue Feb 12, 2025 · 0 comments
Open

CORS Error when using ?blueprint-url reference to github.com #2148

bph opened this issue Feb 12, 2025 · 0 comments
Labels
[Package][@wp-playground] Blueprints [Type] Bug An existing feature does not function as intended

Comments

@bph
Copy link
Collaborator

bph commented Feb 12, 2025

Although using GitHub.com URLs for file references inside blueprints works, well, when trying to reference the github.com URL in a queryparam of playground throws and CORS error

Image

Example:

❌ Does not work: https://playground.wordpress.net/?blueprint-url=https://github.com/wptrainingteam/hellodashboard/blob/main/blueprint.json

✅ Works: https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wptrainingteam/hellodashboard/main/blueprint.json

@bph bph added [Package][@wp-playground] Blueprints [Type] Bug An existing feature does not function as intended labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package][@wp-playground] Blueprints [Type] Bug An existing feature does not function as intended
Projects
Status: Inbox
Development

No branches or pull requests

1 participant