Skip to content
Advertisement

Firefox stops receiving responses after some HTTP requests (React + Axios, Node.js backend), sends only OPTIONS

As the title says, this only happens in Firefox. After some time the browser only sends OPTIONS requests with no responses, no status, no headers, nothing I can see in the debug console.

enter image description here

All of this works perfectly under Chrome, Safari and Edge. I’ve already set up CORS middleware and headers within NodeJS, so that’s likely not the issue. I’m completely lost right now.

enter image description here

Advertisement

Answer

After a lot of banging my head against a wall, I realised that an SQL query from the backend ORM wasn’t finding one of the pieces of data I need on the frontend (it was null in the database), so Firefox instead of simply showing me that it’s failing decided to just not show anything.

In short: if you have this problem just check for errors in your backend

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement