XMLHttpRequest fails silently on requests that violate same origin policy

RESOLVED DUPLICATE of bug 713980

Status

()

Core
Networking
RESOLVED DUPLICATE of bug 713980
5 years ago
5 years ago

People

(Reporter: Eldmannen, Unassigned)

Tracking

26 Branch
x86_64
Windows 8
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20130806104538

Steps to reproduce:

Attempted a Ajax request to a target that violates the same-origin policy.


Actual results:

Nothing. It failed silently.

I was stumped and had no idea why it would not work.
Lots of time were wasted debugging and researching.


Expected results:

Browser console should have logged an event to inform me that the request were blocked due to the same-origin policy, CORS, or other reason.

Perhaps throw a SecurityException.

Updated

5 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 713980
You need to log in before you can comment on or make changes to this bug.