dargmuesli / nuxt-cookie-control

A highly configurable cookie banner for Nuxt.
MIT License
229 stars 43 forks source link

Modal creates a lot of Functional cookie toggles #174

Closed fgd007 closed 8 months ago

fgd007 commented 8 months ago

Environment


Reproduction

Describe the bug

A lot of functional cookies toggles are created.

There is not documentation on how this plugin works. Does it scan of existing cookies? Should they all be declared in the config? This would be unmaintainable since it already loads a mere 50, and with every exotic embed that number will increase. It cannot be true that they all have to be defined beforehand?

Or is this another type of bug?

Screenshot 2023-12-18 at 15 51 17

Additional context

cookieControl: {
    locales: ['nl'],
    closeModalOnClickOutside: true,
    cookieExpiryOffsetMs: 1000 * 60 * 60 * 24 * 365, // one year
    isIframeBlocked: true,
    isControlButtonEnabled: true,
    localeTexts: {
        nl: {
            bannerDescription: 'Lees hier meer of pas je cookievoorkeuren aan.',
            bannerTitle: 'Deze website maakt gebruik van cookies.',
            accept: 'Cookies toestaan',
            decline: 'Niet toestaan',
            acceptAll: 'Cookies toestaan',
            declineAll: 'Niet toestaan',
        },
    },
},

Logs

No response

dargmuesli commented 8 months ago

Hey there, please provide a minimal reproduction according to the requirements in the issue template i.e. a link to a StackBlitz project to allow me to understand if there is a potential bug.

Should they all be declared in the config

Yes, as I see no way for this module to know the source of cookies.

it already loads a mere 50, and with every exotic embed that number will increase

I recommend to rethink this usage of cookies as I'd be intimidated as a user by that amount of cookies and reasoning to have them.

It cannot be true that they all have to be defined beforehand

If it can't, a fork that shows how would be very interesting! I want to invite to share a prototype of that idea. If there is no idea yet, I'd enjoy wording that was a bit more appreciating of the free software that seems to be used by the software mentioned above.

fgd007 commented 8 months ago

Thanks for the quick reply and sorry for the frustrated wording. I do appreciate your work and effort you and others have put into this.

It turns out that when cookies are specified in the cookieControl config it reduces the amount of toggles. Onboarding this plugin felt a bit buggy, but it starts to make more sense now. A short introduction describing what the module does exactly helps understanding and appreciating the software more I think.

BTW: The huge amount of cookies are mainly third party cookies set by Youtube, Spotify, Vimeo, Soundcloud embeds.

dargmuesli commented 8 months ago

Thank you for that feedback! As someone who just went though adopting this module you're very valuable as you understand the obstacles best you've encountered. Would you add one or two sentences you deem missing to the README in a PR? :pray: I would be very thankful.