Git Product home page Git Product logo

cookie-consent-tutorial's People

Contributors

codebubb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cookie-consent-tutorial's Issues

Cookie path is not set to root

I was having issues with the cookie path and noticed that when clicking on Accept the cookie would be saved in the current path. So for example if I was browsing domain.com/blog/ the cookie would be saved for that path instead of /. Meaning everytime I visited another URL I got the popup again even though I already clicked on Accept.

I fixed it by adding path=/ to line 10 in app.js:

document.cookie = `${item}=${value};path=/`

It is working fine, but I'm not sure if that's the best solution. Just wanted to share it in case somebody else was experiencing the same issue.

Thank you for the tutorial and the code!

Popup comes back

If I start a new session (close the browser and open it again), the popup reappears.

Hidden cookie-consent window blocks clicking

Hello,

I implemented the cookie-consent window as described in the video using the source code provided. It all works fine, except that after accepting the terms and clicking okay, the consent window disappears, but somehow still covers (invisibly) the bottom area of the screen and blocks clicks, meaning that if I try to click the links in the footer of the page, nothing happens, they are not even highlighted as links. Any idea what can cause this or how to debug the problem?

Thanks!
W.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.