I'm currently working on my first web extension, but I've encountered some difficulties with web requests. Whenever I make an AJAX request or any other type of request, it doesn't seem to appear in the "Network" tab.
I've been monitoring both the network tab of the application and the network tab in the add-on debug window.
$.ajax({
url: 'https://steamcommunity.com/market/sellitem/',
type: 'POST',
data: {
// data here
},
crossDomain: true,
xhrFields: { withCredentials: true }
}).done(function (data) {
// handler here
}).fail(function (jqxhr) {
// handler here
});
Even though I can see the request ending in 400 when I pause at a breakpoint in the "fail" branch and check the jqxhr variable, I really want to be able to compare the requests in the network tab to identify the issue.
Edit 1: The permissions in my manifest.json file are as follows:
"permissions": [
"*://steamcommunity.com/market/*",
"webRequest"
],