404 错误出现在 onebox URL 上 - 尝试使用 X.com 链接

我就是想不通为什么 X.com 的网址不再显示 onebox 了。我尝试更改论坛的 DNS,使其不通过 Cloudflare 路由(是的,我在更改后等待了 6 个多小时),但尝试 X.com URL 时仍然看到 404 错误。

我也在使用最新版本的 Discourse。

有什么想法吗?

请求 URL:
https://discuss.flynumber.com/onebox?url=https%3A%2F%2Fx.com%2FFlynumbers%2Fstatus%2F2008337947335016821&refresh=true&topic_id=4887

请求方法:
GET

状态码:
404 Not Found

远程地址:
[2606:4700:20::681a:eda]:443

引用策略:
same-origin

响应头:
alt-svc: h3=":443"; ma=86400
cache-control: no-cache, no-store
cf-cache-status: DYNAMIC
cf-ray: 9c5434f07f8af60d-TLV
content-encoding: br
content-security-policy: frame-ancestors 'self' https://www.flynumber.com;
content-type: text/plain; charset=utf-8
date: Wed, 28 Jan 2026 23:18:03 GMT
expect-ct: max-age=86400, enforce
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
priority: u=1,i
referrer-policy: same-origin
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=..."}]}
server: cloudflare
server-timing: cfExtPri
set-cookie: __profilin=...; path=/; secure; HttpOnly; SameSite=Lax
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: Accept
x-content-type-options: nosniff
x-discourse-route: onebox/show
x-discourse-username: FlyNumber
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-request-id: f6455426-e15c-434c-9a00-afba904aef3f
x-runtime: 0.093848
x-xss-protection: 1; mode=block

请求头:
:authority: discuss.flynumber.com
:method: GET
:path: /onebox?url=https%3A%2F%2Fx.com%2FFlynumbers%2Fstatus%2F2008337947335016821&refresh=true&topic_id=4887
:scheme: https
accept: text/html, */*; q=0.01
accept-encoding: gzip, deflate, br, zstd
accept-language: en-US,en;q=0.9,fr;q=0.8,he;q=0.7
cache-control: no-cache
pragma: no-cache
referer: https://discuss.flynumber.com/t/romania-phone-number/4887/2
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
x-csrf-token: lNzlI8YUzVM7DaP3P--JRo2Uw1PAKNHZvdrt3C0BBrF9rVDu9D2nH8MDgiwzGWakGjlHvqon7ORZyLO-s7_6oA
x-requested-with: XMLHttpRequest

Discourse:
discourse-logged-in: true
discourse-present: true
1 个赞

您是否遵循了这里的说明?Configuring Twitter login and rich embeds for Discourse

在过去几年中,由于平台日益封闭,X oneboxes 的支持一直有些棘手。我不认为标头中有任何内容表明您的凭据是否有效,因此您需要仔细检查您的管理员配置。

这对 X 没有任何影响,因为它不会改变出站请求(从您的服务器到 X 的服务器)的性质。
这里的问题很可能是 X 出于自身原因阻止了来自您服务器的请求。

1 个赞