我的网站上有个问题。当我通过IP访问网站时,一切都很好,但当我通过域名访问网站时,我得到了这个错误:
Mixed Content: The page at `<URL>` was loaded over HTTPS, but
requested an insecure stylesheet `<URL>`. This request has been
blocked; the content must be served over HTTPS.
https://141.105.67.4/en/games
https://g11games.com/en/games你能帮我解决这个问题吗?
发布于 2019-04-28 11:24:09
正如错误所述,您的网站正在通过https加载,但网站中包含的脚本正在通过http加载。很可能,在您的配置中,您已经将APP_URL设置为指向http URL,因此您网站上的所有资源都将使用该URL作为基本URL。将其更改为HTTPS应该可以解决错误。
发布于 2019-04-28 11:25:29
通过添加
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> https://stackoverflow.com/questions/55886699
复制相似问题