Closed Nisthar closed 3 years ago
Not directly, although you can pass in browserEmulatorId, which controls the general range of the user-agent (https://secretagent.dev/docs/advanced/browser-emulators#preloaded-plugins).
Do browser emulators give you what you need or are you looking for something more?
This feature has been added to the new 1.5 release which we are in the middle of pushing to NPM.
userAgent is now an option when creating a new Agent:
const agent = new Agent({ userAgent: 'Whatever User Agent String You Want' {);
Is there currently an option to manually set the user agent ?