# 由于热链接图片导致混合内容

**URL:** <https://meta.discourse.org/t/mixed-content-due-to-hotlinked-images/124227>\
**Category:** Product Support\
**Created:** [2019 年7 月 28 日 22:51 UTC](https://meta.discourse.org/t/mixed-content-due-to-hotlinked-images/124227 "2019-07-28T22:51:35Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)\
发布日期： [2019 年12 月 14 日 08:10 UTC](https://meta.discourse.org/t/mixed-content-due-to-hotlinked-images/124227/14 "2019-12-14T08:10:21Z")

</div>

当我发布外部链接时，系统尝试从不安全路径加载特色图片，导致我遇到混合内容错误。

**简易修复方法**

- 进入 /admin/customize

- 在所有现有主题的 部分添加以下代码：

```plaintext
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/5/05edb5ef13f9edd7361e233a470ac46311bf83b1.png)

据我所测试，此方法在 Chrome 浏览器中有效。😯

---

_[View the full topic](https://meta.discourse.org/t/mixed-content-due-to-hotlinked-images/124227)._
