How can fix error (Mixed Content) when i uploed my project to herkou [duplicate]

拟墨画扇 提交于 2020-03-25 19:17:21

问题


**Hello I have problem when I deploy my website to Heroku it's work in local but when Heroku it not working **

this error display

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure stylesheet ''. This request has been blocked; the content must be served over HTTPS.

enter image description here **I know it need content for HTTPS not HTTP but how can I make content by HTTPS **


回答1:


Heroku adds SSL by default. Whereas when you are running it locally and haven't done the certificates it will be available through http.
Try accessing the webpage through http://... instead of https://...



来源:https://stackoverflow.com/questions/60297995/how-can-fix-error-mixed-content-when-i-uploed-my-project-to-herkou

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!