srgb
srgb

Reputation: 5193

How to make a jQuery http -> https AJAX request

I know this has been discussed many times so far, but I can't make it work :/ what am I doing wrong? Target page, when opened standalone, works correctly. Take a look at the screenshot:

enter image description here

Blurred IP is the same everywhere Response is empty

Upvotes: 0

Views: 619

Answers (1)

Rory McCrossan
Rory McCrossan

Reputation: 337626

You are falling foul of the Same Origin Policy.

If you must cross domains (which going from HTTP -> HTTPS is counted as) you need to make a JSONP request.

Upvotes: 1

Related Questions