Ticket #8136 (closed bug: duplicate)
$.aiax() internal exception
| Reported by: | paolo.marani@… | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.next |
| Component: | ajax | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$.ajax() is seriously flawed after the 1.4.3 rewrite !!!
Please find this line in jQuery 1.5:
====================================
| "http:", |
====================================
protocol property may be WRITEONLY, thus this will generate an uncaught exception (access denied) even without a cross-site domain attempts.
effectively, 'document.location.protocol' is not always safe to read, so it's better to completely error protect that line.
We have lost days tracking down this nasty problem.
Please fix it !!!!! Please fix it !!!!! Please fix it !!!!!
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Sorry, the double pipe appear to be interpreted as special code in this editor, i'll try to rewrite the offending line using code blocks