在HTML的head标签中加一段meta http-equiv=Content-Security-Policy content=upgrade-insecure-requests 即可
例子:
head
meta http-equiv=Content-Security-Policy content=upgrade-insecure-requests
script type=textjavascript src=plug-injqueryjquery-1.8.3.min.jsscript
script type=textjavascript
$(document).ready(function() {
window.location.href = loginController.dologin;
});
script
head