# Onebox 和 GDPR 同意

**URL:** https://meta.discourse.org/t/onebox-and-gdpr-consent/175180
**Category:** Support
**Created:** [2021年一月5日 17:11 UTC](https://meta.discourse.org/t/onebox-and-gdpr-consent/175180 "2021-01-05T17:11:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dizzy721](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Dizzy721](https://meta.discourse.org/u/Dizzy721)
#### Post date: [2021年一月5日 17:11 UTC](https://meta.discourse.org/t/onebox-and-gdpr-consent/175180/1 "2021-01-05T17:11:04Z")

</div>

我目前运营一个托管在英国的 Discourse 论坛。在加载某些美国新闻网站（如《华盛顿邮报》或 NPR）时，onebox 加载的却是 GDPR 同意页面，而非新闻文章。这些网站只是我们遇到的示例。

例如，[https://www.npr.org/2021/01/05/952883116/objecting-to-electoral-votes-in-congress-recalls-bitter-moments-in-history](https://www.npr.org/2021/01/05/952883116/objecting-to-electoral-votes-in-congress-recalls-bitter-moments-in-history) 在 onebox 处理时会被转换为 [https://choice.npr.org/index.html?origin=https:%2F%2Fwww.npr.org%2F2021%2F01%2F05%2F952883116%2Fobjecting-to-electoral-votes-in-congress-recalls-bitter-moments-in-history](https://choice.npr.org/index.html?origin=https:%2F%2Fwww.npr.org%2F2021%2F01%2F05%2F952883116%2Fobjecting-to-electoral-votes-in-congress-recalls-bitter-moments-in-history)。

我认为这并非一个漏洞，鉴于当前的设置，这很可能是预期行为。但我想知道社区是否有任何绕过该问题的建议？我们可以将链接作为超链接插入，但这会跳过 onebox 处理。

谢谢！

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2021年一月5日 17:25 UTC](https://meta.discourse.org/t/onebox-and-gdpr-consent/175180/2 "2021-01-05T17:25:02Z")

</div>

它在这里似乎可以正常工作：

> **[Objecting To Electoral Votes In Congress Recalls Bitter Moments In History](https://www.npr.org/2021/01/05/952883116/objecting-to-electoral-votes-in-congress-recalls-bitter-moments-in-history)**
>
> Vice President Pence is far from being the first vice president caught in an awkward position when presiding over the counting of electoral votes and being obligated to announce his own defeat.

因此，该网站会决定将来自特定 IP 列表的请求重定向到另一个页面。

可能的解决方法：

1. 将服务器移至存在该问题的 IP 范围之外。

2. 为 Onebox 使用代理，例如 [“Onebox Assistant”——可靠地抓取这些预览！](https://meta.discourse.org/t/onebox-assistant-crawl-for-those-previews-reliably/107405)

3. 联系相关网站，查看是否可以发送特殊请求头。

4. 等待英国脱欧正式生效？

---

<div class="post-metadata">

### Author: ![Dizzy721](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Dizzy721](https://meta.discourse.org/u/Dizzy721)
#### Post date: [2021年一月6日 04:34 UTC](https://meta.discourse.org/t/onebox-and-gdpr-consent/175180/3 "2021-01-06T04:34:42Z")

</div>

Onebox Assistant 完美解决了问题。谢谢！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年二月5日 04:34 UTC](https://meta.discourse.org/t/onebox-and-gdpr-consent/175180/4 "2021-02-05T04:34:50Z")

</div>

This topic was automatically closed 0 minutes after the last reply. New replies are no longer allowed.
