Skip to content

fix(mocker): restrict redirect mocks to the fs allowlist - #10972

Merged
sheremet-va merged 1 commit into
mainfrom
fix/mocker-redirect-fs-allowlist
Aug 17, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/mocker-redirect-fs-allowlist

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Resolve a redirect mock's target against Vite's file-serving allowlist (server.fs) before registering it, so a redirect can't point outside the served roots.

Also adds registerWebSocketEvents to interceptorPlugin; browser mode disables it and registers mocks through the authenticated RPC instead.

@sheremet-va
sheremet-va requested a review from hi-ogawa August 17, 2026 10:26
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit e211a56
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a82e1755582e30008e8b915
😎 Deploy Preview https://deploy-preview-10972--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit 8ff9b9a into main Aug 17, 2026
30 checks passed
@sheremet-va
sheremet-va deleted the fix/mocker-redirect-fs-allowlist branch August 17, 2026 11:41
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants