I'm trying to make an XMLHttpRequest in the options page of an extension. In my options.js
file I simply have the following code :
if (window.XMLHttpRequest){
var xhr = new getXMLHttpRequest();
}
But I have this error in the console
Uncaught ReferenceError: getXMLHttpRequest is not defined
I saw here that getXMLHttpRequests are a problem for hosted apps, but in this case, it's a simple extension, so I don't understand.