docs: fix PLAYWRIGHT_MCP_ALLOWED_HOSTS env var name#1414
Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom Feb 21, 2026
Merged
docs: fix PLAYWRIGHT_MCP_ALLOWED_HOSTS env var name#1414pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman merged 1 commit intomicrosoft:mainfrom
Conversation
The README documented the environment variable as PLAYWRIGHT_MCP_ALLOWED_HOSTS, but the actual implementation in playwright/src/mcp/browser/config.ts reads from PLAYWRIGHT_MCP_ALLOWED_HOSTNAMES. This caused the env var to silently have no effect. Fixes microsoft#1373
yury-s
added a commit
that referenced
this pull request
Mar 5, 2026
…1440) This reverts commit f1f42f8. It broke lint. See https://github.com/microsoft/playwright-mcp/pull/1414/checks in the original PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The README documents the
--allowed-hostsenvironment variable asPLAYWRIGHT_MCP_ALLOWED_HOSTS, but the actual implementation reads fromPLAYWRIGHT_MCP_ALLOWED_HOSTNAMES:https://github.com/microsoft/playwright/blob/9901ab97198b6109da3591008fba4f367f428471/packages/playwright/src/mcp/browser/config.ts#L312
This one-character discrepancy causes the env var to silently have no effect.
Fixes #1373