https中請求http資源報錯Mixed Content

HTTPS頁面裏動態的引入HTTP資源,好比引入一個js文件,會被直接block掉的.在HTTPS頁面裏經過AJAX的方式請求HTTP資源,也會被直接block掉的。安全 解決:ui 頁面的head中加入:spa <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">資源 意思是自動將http的
相關文章
相關標籤/搜索