# 如何显示“Cookie 同意”？

**URL:** https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903
**Category:** Support
**Created:** [2019年四月12日 22:48 UTC](https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903 "2019-04-12T22:48:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![om26er](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/om26er/32/139713_2.png) [@om26er](https://meta.discourse.org/u/om26er)
#### Post date: [2019年四月12日 22:48 UTC](https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903/1 "2019-04-12T22:48:14Z")

</div>

We recently hosted our own Discourse [instance](https://forum.crossbar.io) using and wanted to make sure that we show a “This site uses cookies” thing whenever someone opened the website, I tried the template from [https://cookieconsent.insites.com/download/](https://cookieconsent.insites.com/download/) and pasted that into the `head` tag of our setup but it didn’t change anything.

Have anyone else had any luck setting up cookie consent message with Discourse, if so, any help there would be appareciated.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2019年四月12日 22:58 UTC](https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903/2 "2019-04-12T22:58:42Z")

</div>

Hi and welcome to Meta @om26er 👋

We have a theme component that handles cookie banners that you can find here:

> [@Discourse Cookie Consent Banner](https://meta.discourse.org/t/discourse-cookie-consent-banner/108380):
>
> warning At this time, it is highly unlikely that this theme component will be enough to comply with GDPR regulations. This is particularly the case if you are using services that introduce 3rd-party cookies. It is highly recommended that you talk to your lawyer and figure out your individual needs This theme component will allow you to add a customizable Cookie Consent banner to your forum. It simply provides an easy way for Discourse admins to make use of the [open source Cookie Consent ban…](https://cookieconsent.insites.com)

---

<div class="post-metadata">

### Author: ![om26er](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/om26er/32/139713_2.png) [@om26er](https://meta.discourse.org/u/om26er)
#### Post date: [2019年四月13日 21:11 UTC](https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903/3 "2019-04-13T21:11:23Z")

</div>

Thanks, that worked 🙂

---

<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: [2019年五月13日 21:11 UTC](https://meta.discourse.org/t/how-to-show-the-cookie-consent/114903/4 "2019-05-13T21:11:27Z")

</div>

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