Zane3

问题总结 & 解决经验 | Cloudflare R2 og:image 跨域抓取失败

  •  
  •   Zane3 · Oct 9, 2025 · 1353 views
    This topic created in 215 days ago, the information mentioned may be changed or developed.
    网站 og:image 社交预览抓取不到?踩坑记录!原来是 Cloudflare R2 没有加 CORS header ,导致 Twitter/X 抓不到缩略图。

    后台手动加上 Access-Control-Allow-Origin: *,刷新 CDN 缓存一分钟搞定!建议所有用 R2/对象存储做 og:image 的开发者都注意这个跨域坑,省下无数调试时间!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3505 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.