Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Jul 3, 2025

Description

Adds a new --internal-cookie-store flag in the Playground CLI and a corresponding internalCookieStore argument in RunCLIArgs. When enabled, all the cookies are stored and served from an internal cookie jar. By default, that option is disabled and the user agent is responsible for handling cookies.

Motivation

Some workflows need Playground to own cookie persistence, e.g. VS Code webview does not store cookies so any Blueprint with autologin enabled results in an infinite redirection loop.

Testing steps

  • Start Playground CLI without the flag and confirm that WordPress sends a set-cookie header both on the homepage and when logging in.
  • Restart it with --internal-cookie-store and verify no cookies are sent to the browser. Confirm the admin login form still works.

cc @bgrgicak @ryanwelcher

processIdSpaceLength,
followSymlinks,
trace,
disableCookieStore: !args.internalCookieStore,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

let's use a consistent internalCookieStore name everywhere and also add a README entry before merging.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have created a PR for it: #2325

@adamziel adamziel merged commit eee84fc into trunk Jul 8, 2025
24 of 25 checks passed
@adamziel adamziel deleted the enable-cookie-store-in-cli branch July 8, 2025 16:26
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