Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(html-report): listen on 127.0.0.1 only (#15361)
Max Schmitt35a2792bb4cf
diff --git a/packages/playwright-core/src/utils/httpServer.ts b/packages/playwright-core/src/utils/httpServer.tsindex a1918e95e8..f5b8a4f78a 100644--- a/packages/playwright-core/src/utils/httpServer.ts+++ b/packages/playwright-core/src/utils/httpServer.ts@@ -58,7 +58,7 @@ export class HttpServer {this._activeSockets.add(socket);socket.once('close', () => this._activeSockets.delete(socket));});- this._server.listen(port);+ this._server.listen(port, '127.0.0.1');await new Promise(cb => this._server!.once('listening', cb));const address = this._server.address();assert(address, 'Could not bind server socket');