diff --git a/packages/cli/src/commands/server/eventsSocket.ts b/packages/cli/src/commands/server/eventsSocket.ts index e3dbe3e51..e02c6b1ff 100644 --- a/packages/cli/src/commands/server/eventsSocket.ts +++ b/packages/cli/src/commands/server/eventsSocket.ts @@ -125,7 +125,9 @@ function attachToServer( verifyClient({origin}: {origin: string}) { // This exposes the full JS logs and enables issuing commands like reload // so let's make sure only locally running stuff can connect to it - return origin.startsWith('http://localhost:'); + return ( + origin.startsWith('http://localhost:') || origin.startsWith('file:') + ); }, });