我正在使用tarruda datetimepicker作为我的项目,它一切正常,直到我转移到https
。 Tarruda datetimepicker链接为http
。我收到警告
Mixed Content: The page at 'https://mywebsite.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://tarruda.github.io/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css'. This request has been blocked; the content must be served over HTTPS.
我该怎么做才能解决这个问题?
答案 0 :(得分:0)
在本地托管文件或更改链接以使用https - https://tarruda.github.io/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css。我更喜欢通过链接在本地托管文件,因为它不是CDN,所有者可以选择停止Github页面,基本上会终止你的链接。