Closed Bug 902378 Opened 7 years ago Closed 7 years ago

XMLHttpRequest fails silently on requests that violate same origin policy

Categories

(Core :: Networking, defect)

26 Branch
x86_64
Windows 8
defect
Not set

Tracking

()

RESOLVED DUPLICATE of bug 713980

People

(Reporter: eldmannen+mozilla, Unassigned)

Details

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.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 713980
You need to log in before you can comment on or make changes to this bug.