If I make a fetch request in Node.js, and I want to make the fetch request look as browser-like as possible, what headers should I set besides the obvious User Agent header?
Similar to this question: Can I make a get request look like that of a browsers? but a little more specific (I only care about setting headers).
Header should be like this:
{
User-Agent: Firefox,
//your rest header
}
User-Agent shows the agent the user is using to communicate with the server. I have shown one in the picture in the link. Image of Wikipedia request on my computer. See the red highlighted area. Other information have been obfuscated as I am Wikipedia writer and to protect this account:
.