Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different work of headless mode #635

Open
lusy777 opened this issue Jul 8, 2024 · 3 comments
Open

Different work of headless mode #635

lusy777 opened this issue Jul 8, 2024 · 3 comments

Comments

@lusy777
Copy link

lusy777 commented Jul 8, 2024

I noticed different work when I'm calling $browserFactory->createBrowser() with/without 'headless' => false
With 'headless' => false appeared chrome window with load page and return full html page, but without this option I see in html response "..You don't have permission to access.. "
I thought both modes were supposed to work the same?

@enricodias
Copy link
Member

Probably the website is identifying the headless mode and changing its behaviour.

@lusy777
Copy link
Author

lusy777 commented Jul 8, 2024

Is there any trick to fool this identifying?

@enricodias
Copy link
Member

You can try tweaking the things that this tool checks for to detect headless: https://github.com/infosimples/detect-headless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants