I have spent many, many hours trying to solve this. When run locally or inside a Docker container, the following script fails in binding to IP 0.0.0.0 and instead reverts to the default loopback 127.0.0.1 making remote debugging inaccessible. I have no idea why this is and would immensely appreciate any thoughts.
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({
headless: true,
args: [
'--remote-debugging-port=9222',
'--remote-debugging-address=0.0.0.0',
'--disable-ipc-flooding-protection',
'--no-sandbox',
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox'
]
});
const page = await browser.newPage();
await page.goto('');
})();
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744277645a4566411.html
评论列表(0条)