Skip to content

Feature request: Allow fetching blueprints from url with credentials. #2182

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

Open
andreilupu opened this issue Apr 4, 2025 · 1 comment
Open

Comments

@andreilupu
Copy link

I wonder if this line here is meant to be used for CORS handling only or is required for other purposes.
https://github.com/WordPress/wordpress-playground/blame/7b3b40253ea468ecf48ceaa7bba5d525f045dc89/packages/playground/website/src/lib/state/url/resolve-blueprint-from-url.ts#L16

I've made a private, self-hosted version of Playground, where I've protected the blueprint.json and the plugin zip files under an nginx OAuth2 proxy. Generally, this works well, except for the blueprint.json file, which is not loaded since the OAuth cookie won't be passed in that fetch.

Basically, I need an option to allow credentials: 'include' for private blueprints.

I was thinking of proposing a PR to make that a parameter, but I want to make sure this is in line with the project's principles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Inbox
Development

No branches or pull requests

2 participants
@andreilupu and others