简体   繁体   中英

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.

在此处输入图像描述

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.

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM