Side navigation
#3493 closed bug (duplicate)
Opened October 17, 2008 10:29PM UTC
Closed October 18, 2008 08:31PM UTC
$.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: |
Description
$.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.
Attachments (0)
Change History (1)
Changed October 18, 2008 08:31PM UTC by comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
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.