whitecube / laravel-cookie-consent

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

Cannot accept consent when tunneling traffic through Ngrok #31

Open RalpinMcDjango opened 6 months ago

RalpinMcDjango commented 6 months ago

I'm currently having an issue with this library in a Laravel 10 application.

The issue is that on both Android and iOS accepting the cookie consent when my local development traffic is tunneled through Ngrok doesn't do anything, the consent box will not disappear.

I Might be missing something basic but i have updated to the latest version of the library 1.1.0. I have tried changing the APP_URL in my .env file to the Ngrok domain i'm given and I've also tried updating the domain in the cookieconsent.php file, nothing yet has fixed this.

The consent pop-up displays and closes as expected on my Windows and Linux desktop browsers when traffic is tunneled through Ngrok but the cookie is not set.

Steps to reproduce:

Any help or suggestions are much appreciated.