我已经设法使用Zappa将站点部署到AWS Lambda,这虽然很复杂,但最终还是到了。但是我遇到了一个问题,其中我的某些图标未加载。请查看下面的控制台日志。
Blocked loading mixed active content "http://localhost:8000/static/scss/icons/simple-line-icons//fonts/Simple-Line-Icons.ttf?-i3a2kk"[Learn More]
login
Blocked loading mixed active content "http://localhost:8000/static/scss/icons/themify-icons/fonts/themify.woff"[Learn More]
login
Blocked loading mixed active content "http://localhost:8000/static/scss/icons/material-design-iconic-font//fonts/materialdesignicons-webfont.woff2?v=1.8.36"[Learn More]
login
Blocked loading mixed active content "http://localhost:8000/static/scss/icons/font-awesome/webfonts/fa-solid-900.woff2"[Learn More]
login
Blocked loading mixed active content "http://localhost:8000/static/scss/icons/font-awesome/webfonts/fa-regular-400.woff2"[Learn More]
该站点托管在https://h28ijhkwy3.execute-api.eu-west-2.amazonaws.com/Demo/account/login
因此,我相信可以使用以下方式从我的style.css文件中调用此文件:
@import url(../scss/icons/material-design-iconic-font/css/materialdesignicons.min.css);
我尝试改用完整的AWS S3路径,但是它仍然不起作用,并且在控制台中仍然出现相同的错误。
答案 0 :(得分:1)
您使用的是Firefox吗? 如果是这样,此答案可能会帮助您:https://stackoverflow.com/a/18251129/1014508
TLDR;默认情况下,Firefox 23中混合活动内容被阻止