I use an api to send emails. I noticed that in order for it to work successfully I need to set a user-agent. So I put the following in my header for a POST request.
headers: {
'user-agent': 'myapp/2022.6.0',
'content-type': 'application/json',
'content-length': data.length,
'accept': '*/*'
}
It works but I wonder if there is a pattern or can I just write anything in? What is the point then? Thanks in advance! Max
Notes I using nodeJs, and the Mail Api is web3Froms https://web3forms.com/#start.