jQuery .post() not executing

I have the following AJAX call through jQuery:

// var upload = some JSON data
$.post('/videos/upload', upload);

And this express.js API part to handle the request:

app.post('/videos/upload', function(request, response) {
    console.log('Request received')
}

However, when .post() is called, it does not seem to be executing. The request is nowhere to be seen in Firebug's Net logger, and the node.js console doesn't log anything, either.

When I type the request directly into the Firebug console, it executes just fine.

Using $.ajax() does not work, either.

Thanks in advance.

To troubleshoot and isolate the problem, you need to determine if this is a backend or a frontend problem.

Backend Check

Try using something like Postman to hit the endpoint directly with the data that should be posted. If you never get that console.log to execute then you may have some problems with your routes.

Frontend Check

If that works, then look at the Network tab of your Dev Tools in Chrome and make sure that the request looks the same as the one you make in Postman.