firefox extension make ajax request

JavaScript
  "permissions": [
    "webRequest",
    "<all_urls>"
  ],
Source

Also in JavaScript: