'Instagram screenshot redirects to login
Bug description
Hello, I want to take screenshots of people's profile pages for instagram and twitter, but they want me to login. Below is the user agent I use. I can send this request from my own computer without any problems, but it wants me to log in through my server.
User agent;
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
await page.setViewport({
width: 1300,
height: 600,
deviceScaleFactor: 1
});
The result I got when I tried it on my own computer;

The result I got when I tried it on the server;

Note: the server is hosted on amazon.
Puppeteer version
13.1.3
Node.js version
14.17.6
npm version
8.3.0
What operating system are you seeing the problem on?
Linux
Relevant log output
No response
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
