Is anyone else experiencing the cookie banner appearing on every page load during theme development on localhost, even after accepting it? This wasn’t happening before , so I’m curious if anyone else has run into this.
Note: happens on legacy as current CLI. So I assume this might be because of an update to the cookie banner, not the CLI.
2 Likes
Hi Dries - I’m not seeing any other reports of this, can I get more info on your set up, eg: running mac vs windows, browser, etc?
@Dries_Pieters for what it’s worth, could it be built into the theme to show within design mode?
I have seen themes where there are data collection forms (like newsletter) coming up on every page load simply because it was in design mode.
I also have this problem: the cookie banner is displayed every time the page is reloaded when developing locally with shopify theme dev.
Hi guys,
Thanks for looking into this. Here’s some more info:
Using the native Shopify cookie banner. (Automated settings)
Latest CLI 3.69.2, but happens with --legacy as well
Browser: chrome, safari, firefox (all latest) on mac osx (latest).
Tried clearing all cookies
Cookies are accepted on the primary domain, so on the live site or development preview url .myshopify.com/?preview_theme_id=xxxx it works
But on localhost http://127.0.0.1:9292/ it keep popping up every time
Issue only started happening ± a week ago
There is a cookie _tracking_consent :
{"con":{"CMP":{"a":"","m":"","p":"","s":""}},"v":"2.1","region":"BEVLG","reg":"","purposes":{"p":false,"a":false,"m":false,"t":true},"display_banner":true,"sale_of_data_region":false}
On localhost this value does not change after accepting. On the primary domain it does change after accepting.
Console error after accepting:
POST https://127.0.0.1:9292/api/unstable/graphql.json net::ERR_SSL_PROTOCOL_ERROR
Hope this helps!
Hi Dries - if you test on other stores and different themes, is it still appearing?
That’s correct. Tried on couple of stores and different themes.
Hi again Dries - were you able to figure this issue out?
Hey Liam,
No unfortunately still the same problem…
Will investigate more today and hopefully should have a solution soon.
1 Like
Hello, I still have the problem, regardless of the browser
Still having this issue. On a new store as well.
Have been having the same issue on multiple stores last few months.
1 Like
Luke
February 6, 2025, 9:33am
14
There’s an active open issue for this FYI
opened 02:07PM - 13 Jan 25 UTC
Severity: 3
Type: Bug
Area: @shopify/theme
The "Cookie banner" keeps appearing after every reload on the localhost server.
…
### Expected behavior
The "Cookie banner" should not appear after every reload on the localhost server:

### Actual behavior
It should work just like the preview URL.
### Reproduction steps
- Activate the banner at `/settings/privacy/consent-banner`
- Clone Dawn using `shopify theme init`
- Run `shopify theme dev`
- Notice it keeps appearing after every refresh
Yup been getting this for months, assumed everyone else had too! Possibly Firefox specific?
All of a sudden the built in Shopify Cookie Consent banner is appearing when i’m logged in and working on the back end. Why? This wasn’t happening before and there should be a setting to prevent this. Why do i need to give myself consent for cookies when I’m editing my own site!?
1 Like
Piero
September 4, 2025, 7:52am
17
Same here, it started appearing two days ago inside the theme customizer. Really annoying since it appears again and again on every change saved and it does not remember the preference selected.
Quick fix can be implemented following this, hope it helps: Shopify Cookiebar - cannot dismiss pernamently on localdev/customizer - #5 by ceri_waters
{%- if theme.role == "development" or request.design_mode -%}
{% style %}
#shopify-pc__banner { display:none!important; }
{% endstyle %}
{%- endif -%}