# Why does this Angular 16 app keep showing cookie consent bar on Netlify?

**URL:** <https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160>\
**Category:** Support\
**Tags:** angular, feature-request\
**Created:** [May 25, 2024, 2:32pm UTC](https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160 "2024-05-25T14:32:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajax30](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/ajax30/32/61425_2.png) [@Ajax30](https://answers.netlify.com/u/Ajax30)\
**Post date:** [May 25, 2024, 2:32pm UTC](https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160/1 "2024-05-25T14:32:31Z")

</div>

**I have deployed a [Movies app](https://angular-tmdb.netlify.app/) made with Angular 16 and TMDB API on Netlify.**

**The problem is that the cookie consent bar keeps appearing upon refreshing the page, even after cookies are allowed.**

**This does not happen with the local app (on [http://localhost:4200/](http://localhost:4200/)), only on Netlify.**

**In case it is relevant, I did add the `_redirects` file.**

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [May 25, 2024, 3:49pm UTC](https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160/2 "2024-05-25T15:49:41Z")

</div>

Your app is not setting any cookies or localstorage that defines that the cookie consent has been accepted. This is not a Netlify issue.

---

<div class="post-metadata">

**Author:** ![Ajax30](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/ajax30/32/61425_2.png) [@Ajax30](https://answers.netlify.com/u/Ajax30)\
**Post date:** [May 26, 2024, 1:38pm UTC](https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160/3 "2024-05-26T13:38:27Z")

</div>

The problem does not happen on [http://localhost:4200/](http://localhost:4200/). So, how is it not a Netlify issue?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [May 26, 2024, 1:55pm UTC](https://answers.netlify.com/t/why-does-this-angular-16-app-keep-showing-cookie-consent-bar-on-netlify/119160/4 "2024-05-26T13:55:13Z")

</div>

I don’t know what your app is doing locally. All I know is your app is not setting anything in the browser (that I could find) to save a preference of the cookie banner being closed. I don’t know how your app determines whether or not to show the banner, so this is something you need to check in your setup.
