jQuery ajax在同一个域上对https进行故障转移

时间:2014-02-04 19:59:47

标签: php jquery ajax https get

我已经将我的网站切换到要求https,并确认所有资源都是从https加载的(没有非安全内容),但是我对本地php脚本的许多ajax调用现在都失败了,没有错误(其他比“(失败)”。

E.g。

$.ajax({    type: "GET",
        url: '/dashboard/helper/total-promoshares.php?param=params...',
        success: function(data) {
        etc...

这比http更好用,我可以使用http和https在浏览器中访问网址,但是当我从https页面调用上面的内容时,我会得到以下信息:

GET https://myurl.com/dashboard/helper/total-promoshares.php?e=1234&service=facebook&_=1234
send foundation.min.js:20
v.extend.ajax foundation.min.js:20
e index.min.js:11
d
GET https://myurl.com/dashboard/helper/total-promoshares.php?e=1234&service=twitter&_=1234  send foundation.min.js:20
v.extend.ajax foundation.min.js:20
e index.min.js:11
d
GET https://myurl.com/dashboard/helper/total-promoshares.php?e=1234&service=linkedin&_=1234  
send foundation.min.js:20
v.extend.ajax foundation.min.js:20
e index.min.js:11
d

来自网络标签的请求/回复:

total-promoshares.php?e=1234&service=facebook&_=1234    
GET
(failed)
foundation.min.js:20    
13 B    
531 ms  

curl 'https://myurl.com/dashboard/helper/total-promoshares.php?e=1234&service=facebook&_=1234' -H 'Pragma: no-cache' -H 'Accept: */*' -H 'Referer: https://myurl.com/dashboard/analyze/' -H 'X-Requested-With: XMLHttpRequest' -H 'Cache-Control: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36' --compressed

This request has no response data available.

请帮忙!

0 个答案:

没有答案
相关问题