LucianoGanga/simple-headless-chrome

We need to run browser with proxy,How i set proxy?

Closed this issue · 3 comments

we are using NPM of simple-headless-chorme. I have tried to set proxy of it.Even this cannot having the correct document to the proxy.Can you help me to get this things done?

Hello @iyyappan13391 !

I don't understand what you need to do. You need to add a proxy to the navigation?

I think that's something you can do at a network level, and not from the Headless Chrome.

Thanks!
Lucho

Just start your chrome with: chromium --headless --proxy-server=host:port [...]

In that case, if it's with a flag, you can pass flags when initializing the instance. Check the example here:

https://github.com/LucianoGanga/simple-headless-chrome#support-more-chrome-flags

Cheers!
Luciano