混合內容我得到了我的JS函數來獲取新的職位一個內部下面的代碼,當用戶點擊按鈕Load more
Jquery.get()時,試圖獲取數據,而HTTPS
$.get("/blog/page" + nextPage, function (data) {
代碼工作很好,當我在本地測試它。
當我把它推到gh頁時,它看起來很好。但是,當我點擊Load more
按鈕,我得到以下錯誤:
Mixed Content: The page at 'https://username.github.io/sub-name/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://username.github.io/sub-name/blog/page2/'. This request has been blocked; the content must be served over HTTPS.
我已經添加到baseurl
文件_config.yml
但它並沒有解決問題。
你可以添加回購嗎?我有一個想法(壞的參考),但需要代碼來確認 – StephenG