Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3493 closed bug (duplicate)

$.getJSON doesn't properly take into account protocol when determining whether or not to make a remote request

Reported by: sjogreen Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


$.getJSON determines whether or not to insert a script tag for a JSONP type request or just to make a plain XmlHttpRequest based on whether or not the hostname matches the current host. Unfortunately, this doesn't take into account protocol (which matters in the same orgin policy) so that getJSON fails to make an https request to the SAME domain as an http page but works fine for https requests to a different domain.

If it would just insert the script tag instead, this would work fine.

Change History (1)

comment:1 Changed 14 years ago by flesler

Resolution: duplicate
Status: newclosed

I think I already fixed this on [5731] + [5588]. Can you try using the last version from trunk ?

Do reopen if you still find an issue.

Duplicate of #3045.

Note: See TracTickets for help on using tickets.