method setExtraHTTPHeaders doesn't work #273
adultviews20
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi could someone help me , what the problem can be.
I am launching instance of browser by puppeteer for dart, but extra headers doesnt want to apply, i set it and then check by website online checker for headers ( tried different websites)
my scenario very simple
List argsPup = [
// '--no-sandbox',
// '--disable-setuid-sandbox',
'--disable-infobars',
'--window-position=0,0',
'--ignore-certifcate-errors',
'--ignore-certifcate-errors-spki-list',
'--proxy-server=global.rotating.proxyrack.net:9000',
'--lang=en-US',
'--no-first-run',
'--no-service-autorun',
'--password-store=basic',
'--disable-gpu',
'--disable-infobars',
'--disable-dev-shm-usage',
'--disable-browser-side-navigation',
'--disable-breakpad',
'--use-mock-keychain',
'--disk-cache-dir=/dev/null',
'--media-cache-dir=/dev/null',
'--disk-cache-size=0',
'--media-cache-size=0',
'--disable-application-cache',
'--disable-component-extensions-with-background-pages',
'--disable-features=TranslateUI,BlinkGenPropertyTrees',
'--allow-insecure-localhost',
'--ignore-ssl-errors',
'--ssl-insecure',
'--disable-popup-blocking',
'--incognito',
'--window-size=1280,960',
"--disable-features=NetworkService"
// '--disable-blink-features=AutomationControlled',
];
browser = await puppeteer.launch(
ignoreDefaultArgs: [
'--enable-automation',
'--enable-blink-features=IdleDetection'
],
args: argsPup,
headless: false,
);
then i setting user agent
then i adding headers
thens some few more settings and traffic filter and proxy auth
await page.emulateTimezone('America/New_York');
await page.setJavaScriptEnabled(true);
} catch (e) {}
page.authenticate(
username: 'natalyportman',
password: '*************');
FINALLY i go to the website headers checker, doesnt want to change, i try to do it one by one, its work only for 'ACCEPT-ENCODING'
Beta Was this translation helpful? Give feedback.
All reactions