feat: add playright hook to allow navigation to localhost #1

Merged
SethFalco merged 1 commit from playwright-hook into main 2026-03-02 22:14:11 +00:00
SethFalco commented 2026-03-02 19:27:02 +00:00 (Migrated from gitlab.com)

I wanted to try the Playwright MCP, but giving the agent access to the
whole web would be pretty irresponsible. I still want to try to configure
it permissively, but have to be much more careful here.

Any tools that are local only are allowed. Any file uploads and form
submissions are auto refused, even locally. Regarding navigation,
it automatically allows localhost and equivalents, and requires approval
to actually perform actions on the page. (To avoid clicking a link to a
remote page.)

I want Playwright to only able to navigate to local links, yet be
allowed to load remote resources on those pages, but this is challenging
to do. This is better than having to manually approve every little
action though. ^-^'

I wanted to try the Playwright MCP, but giving the agent access to the whole web would be pretty irresponsible. I still want to try to configure it permissively, but have to be much more careful here. Any tools that are local only are allowed. Any file uploads and form submissions are auto refused, even locally. Regarding navigation, it automatically allows localhost and equivalents, and requires approval to actually perform actions on the page. (To avoid clicking a link to a remote page.) I want Playwright to only able to navigate to local links, yet be allowed to load remote resources on those pages, but this is challenging to do. This is better than having to manually approve every little action though. ^-^'
SethFalco commented 2026-03-02 19:27:52 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 327729aa - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>327729aa - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687473794&start_sha=d0f378d87bd5340e2f856715d337fd8f8f6cc019)
SethFalco commented 2026-03-02 19:28:50 +00:00 (Migrated from gitlab.com)

added 1 commit

  • aa5c9419 - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>aa5c9419 - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687474798&start_sha=327729aa8563363f982970c66711809e89fc9830)
SethFalco commented 2026-03-02 19:30:19 +00:00 (Migrated from gitlab.com)

added 1 commit

  • b3f1a0c1 - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>b3f1a0c1 - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687476427&start_sha=aa5c9419a519e47a6ecd0ce5301b78c06ba1b2a1)
SethFalco commented 2026-03-02 19:31:01 +00:00 (Migrated from gitlab.com)

added 1 commit

  • d3174d1f - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>d3174d1f - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687477157&start_sha=b3f1a0c165188b3e6a947cecbc7785d45ba84d13)
SethFalco commented 2026-03-02 20:45:25 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 2a668932 - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>2a668932 - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687554509&start_sha=d3174d1f1d9293ec66dc56d760eaf3f8f3c34049)
SethFalco commented 2026-03-02 22:11:20 +00:00 (Migrated from gitlab.com)

added 1 commit

  • eb360328 - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>eb360328 - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687644612&start_sha=2a6689322ba2ef1cca58b0da386962abed755306)
SethFalco commented 2026-03-02 22:12:40 +00:00 (Migrated from gitlab.com)

added 1 commit

  • cfd35471 - feat: add playright hook to allow navigation to localhost

Compare with previous version

added 1 commit <ul><li>cfd35471 - feat: add playright hook to allow navigation to localhost</li></ul> [Compare with previous version](/SethFalco/claude-config/-/merge_requests/1/diffs?diff_id=1687646030&start_sha=eb36032818af18c3e50fce49a6a6a99cb572258f)
SethFalco commented 2026-03-02 22:14:11 +00:00 (Migrated from gitlab.com)

mentioned in commit d6de8f2c2e

mentioned in commit d6de8f2c2e2f4472242c86db7a081fa7e819bd1d
SethFalco (Migrated from gitlab.com) merged commit d6de8f2c2e into main 2026-03-02 22:14:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai/claude-config!1
No description provided.