cookie-consent-tutorial's People
Forkers
scriptech ivansarajcic idzan xalvagp millankaul slobodan-newprint lawrenceaph moon3567 oghie-gabriel mspdl ashish016 kilo0110 jurb17 p2bg disoluted archerscodes anthonythetechnician ivaxfernandes gaboum priyankabaneverticurl gafkycookie-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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.