whitecube / laravel-cookie-consent

Register, configure and ask for cookies consent in a EU-compliant way
MIT License
312 stars 37 forks source link

Cookie Dialog Shows Up Again On Different Pages #16

Open glennraya opened 11 months ago

glennraya commented 11 months ago

Hi, I'm using Laravel 10+ and Inertia (React) SSR. The cookie consent dialog always shows up again on different pages other than the index route. After I navigate to the home page, that's when the dialog never shows up again on different pages on the site. Am I missing some configs? Thanks

toonvandenbos commented 10 months ago

Hi @glennraya,

After consent has been defined, can you see the cookie being set? If so, could you check if cookies are sent in the following requests headers? Thanks!

gaud2029 commented 10 months ago

make sure the domain is set correctly, I had my domain set to something.com in my local environment but the cookie was using .something.com

It works if I use www.something.com in my local env.

uvali commented 9 months ago

Hi, I have the same issue as @glennraya . I verify and the cookie is set on the response but is not sent in the following request. I set in cookieconsent.php my domain but no results. The cookie still not sent on the following request.

Eyonic commented 5 months ago

In my case the cookie acceptance submission was blocked because it attempted to load over HTTP instead of HTTPS.

Adding a meta worked for me: meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"