在相应页面的head中加入一段代码即可:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
参考:https://www.honmau.com/help/142.html