# 无法在禁用强制 HTTPS 的网站上启用 DiscourseID

**URL:** https://meta.discourse.org/t/cant-enable-discourseid-on-a-site-with-force-https-disabled/399376
**Category:** Self-hosting
**Tags:** discourse-id
**Created:** [2026年三月26日 20:29 UTC](https://meta.discourse.org/t/cant-enable-discourseid-on-a-site-with-force-https-disabled/399376 "2026-03-26T20:29:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2026年三月26日 20:39 UTC](https://meta.discourse.org/t/cant-enable-discourseid-on-a-site-with-force-https-disabled/399376/2 "2026-03-26T20:39:27Z")

</div>

错误消息“返回的 Discourse ID"指出，网站的 Redirect URI 必须为 https，因此您需要启用 `force_https`，或者通过代理配置表明请求是通过 https 传入的。

> [@darkpixlz](#):
>
> 该网站在 https 上运行正常

除了所有不正常的部分：

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/e/7/ae7660499e1723aef57cc0877b23ec53e248e2e7.png)

---

_[View the full topic](https://meta.discourse.org/t/cant-enable-discourseid-on-a-site-with-force-https-disabled/399376)._
