You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --internal-cookie-store option for Playground CLI (#2323)
## 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
0 commit comments