在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/影視  HTML/ Https的站點(diǎn)不請求htpp資源問題

Https的站點(diǎn)不請求htpp資源問題

最近在做一個項目。涉及到音頻播放,可是當(dāng)訪問的站點(diǎn)是http的時候,可以請求到mp3資源,如圖:
圖片描述

可是當(dāng)站點(diǎn)換成https的時候,卻請求不到對應(yīng)的mp3資源,如圖:

圖片描述

還望看見的小伙伴能夠解答一下,謝謝了

回答
編輯回答
任她鬧

瀏覽器不允許HTTPS頁面加載HTTP資源,因為不安全,這里引用一個Google的What Is Mixed Content?

Mixed content occurs when initial HTML is loaded over a secure HTTPS connection, but other resources (such as images, videos, stylesheets, scripts) are loaded over an insecure HTTP connection. This is called mixed content because both HTTP and HTTPS content are being loaded to display the same page, and the initial request was secure over HTTPS. Modern browsers display warnings about this type of content to indicate to the user that this page contains insecure resources.

在HTTPS頁面加載HTTPS資源會有以下報警信息:

圖片描述

2017年6月23日 02:51
編輯回答
櫻花霓

瀏覽器默認(rèn)是不允許https網(wǎng)站引入http資源的,你需要把音頻文件的域名也改成https

2018年8月1日 02:54