跨域代理https協議?
? ? ? ?遇上了終極難題,代碼本地運行課程中的功能都能實現,但我把它放在github上,github pages生成的demo頁面就有問題。
? ? ? ?首先是cdn地址無法使用,我都換成了對應的本地插件,頁面倒是正常了。可是查詢提交申請時報錯:
jquery-1.11.1.min.js:4 Mixed Content: The page at 'https://ccccccl.github.io/Train-time/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://cors.itxti.net/?www.webxml.com.cn/WebServices/TrainTimeWebService.asmx/getStationAndTimeDataSetByLikeTrainCode?UserID=&TrainCode=G1'. This request has been blocked; the content must be served over HTTPS.
? ? ? ? 我理解的是因為github的協議頭是https,但是代理的協議是http,所以不行。于是我在網上查了兩天,想解決想找https協議的代理,都無果。
? ? ? ? 求大神幫助!
2017-03-30
用coding替換GitHub吧,我之前是這么解決的