Enabling Copilot Agent PlayWright MCP Server external access #167370
Replies: 4 comments 5 replies
This comment was marked as spam.
This comment was marked as spam.
-
|
Hi @graham83, To enable external-domain browsing in the built‑in Playwright MCP server for Copilot Agent, you need to override both the MCP server’s CORS policy and the Chromium launch flags. By default it only binds to 1. Create or update your
|
Beta Was this translation helpful? Give feedback.
-
|
Seems still no solution for this issue? Essentially having the MCP Playwright sandboxed makes impossible to use the coding agent generating test code properly. What is weird as this was the most often displayed scenario of coding agent usage in the github videos. |
Beta Was this translation helpful? Give feedback.
-
|
I'm not very sure if I'm getting it correctly, but I'll post them anyways, if I'm not mistaken, right now, you cannot enable external domain access for Playwright in Copilot Agent Mode, it’s an intentional sandbox limitation (to prevent data leakage and security risks), and GitHub’s docs note that only localhost endpoints are supported Possible Workarounds until GitHub adds broader support, options are limited:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
Copilot Agent Mode
Body
The PlayWright MPC integration 'by default' only allows access to the local host for browsing according to the copilot docs.
How do we enable playwright, in the copilot agent environment, access to external domains such that copilot can complete authentication steps required to navigate an app?
I have tried:
However the Copilot Agent always fails to login to the app due to the authentication redirect, reporting error:
net::ERR_BLOCKED_BY_CLIENT
I am using Azure B2C authentication within the web app.
Any assistance appreciated.
Beta Was this translation helpful? Give feedback.
All reactions