tags:

views:

25

answers:

1

I want to read data from one of the JSON feeds URL and i have used $.getJson(), the feed URL is in diff domain but both are on secured protocol, the same is working on http protocol, but not on https. If anybody has faced similar prob or aware what might be the reason. Please share..thanks in advance

+1  A: 

Encrypting the data doesn't override the same origin policy, you can't read data from a different domain with XHR.

Use JSON-P or a get your server to fetch it on the user's behalf.

David Dorward
I have used JSON-P also. After adding the callback=? the script started giving java script error
shilpa.randive
The nature of the error should tell you the next step you need to take in order to get it working.
David Dorward
I am able to resolve the issue with JSONP thanks for the help
shilpa.randive