I generated a piece of java script from postman.
The 1st line of the script is:
var xhr = new XMLHttpRequest();
However, I pasted the script into the prescript of another API call. The script generates the following error:
There was an error in evaluating the Pre-request Script: ReferenceError: XMLHttpRequest is not defined
I must be misunderstanding something.
Has anyone else encountered this before?