Ajax call issue in firefox extension

please have a look at that stackoverflow thread
im facing issues with ajax in firefox extension

Are there any messages in the console?

Also, as a side-note, I personally would not recommend jQuery in an add-on. The design of jQuery contains choices that made lots of sense when they were made but didn’t age well with respect to security, so other frameworks (or not using a framework at all) might be a better choice.

1 Like

it shows nothing in my console
and morever i cannot make addon without using Jquery
to some extent i have to depend on ajax calls to get authneticate users asynchronously
if you have better option please let me know
thanks

If there is nothing in the console, it’s going to be difficult to diagnose. So your error method is never called?

Regarding jQuery, you most definitely do not need it to write add-ons or to use ajax. jQuery is just a nice-to-have framework that makes a number of tasks simpler to write, but it doesn’t add any capability to the browser.

nope the error method isnt called as well

Source map error: Error: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://a6e2e5bb-28ec-4c6d-baef-70779c325c52/jquery.min.js
Source Map URL: jquery.min.map
this is the error I’m seeing in the console

It seems I have a similar problem… Can’t read the AJAX response on an extension page (the permission in the manifest is “<all_urls>”)