Closed Bug 1589032 Opened 6 years ago Closed 6 years ago

Console shows CORS error when server just won't answer

Categories

(Core :: Networking, defect)

69 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1589036

People

(Reporter: t.chaumeny, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

  1. Open https://twitter.com/home with Firefox
  2. Cut your internet connection
  3. Open Firefox Console.
  4. Click on links to generate API requests (e.g. "Messages")

Actual results:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.twitter.com/...

Expected results:

Console should show a net::ERR_CONNECTION_REFUSED (or equivalent)

The fact that the preflight request didn't get an answer doesn't mean that there is a CORS issue. It's actually very misleading for debug purpose.

Sorry for the garbage, I hadn't noticed the specific console tracker, I created a report there https://bugzilla.mozilla.org/show_bug.cgi?id=1589036

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → MOVED

Please don't intentionally file duplicates. Someone can move your report to the appropriate component if you're unable to do so.

Resolution: Moved is for reports that are handled on a different issue tracker, like GitHub. The link to the other report must be placed in the See Also field here.

Component: Untriaged → Networking
Product: Firefox → Core
Resolution: MOVED → DUPLICATE
You need to log in before you can comment on or make changes to this bug.