failed to execute 'setrequestheader' on 'xmlhttprequest': string contains non iso-8859-1 code point 1

failed to execute ‘setrequestheader’ on ‘xmlhttprequest’: string contains non iso-8859-1 code point

headers.append('User-Agent', 'Mozilla/5.0 (Windows NT 10.0;) Gecko/20100101 Firefox/68.0' );

Here is what the above code is Doing:
1. We’re creating a new Request object.
2. We’re setting the method to GET.
3. We’re setting the URL to the URL we want to make the request to.
4. We’re setting the headers to a new Headers object.
5. We’re appending a new header to the headers object.

Similar Posts