You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default configuration for the cookie consent url/route prefix includes a dash character, which causes a 500 Internal Server Error when trying to load the cookie consent script, which then causes the buttons to not work anymore, making the consent banner unusable.
Current Behavior
When attempting to load the cookie consent script, the following error occurs:
GET http://localhost:8008/cookie-consent/script?id=XXXXXX net::ERR_ABORTED 500 (Internal Server Error)
When attempting to click on the buttons, the following error occurs:
Uncaught TypeError: Cannot read properties of undefined (reading 'acceptEssentials')
Expected Behavior
The cookie consent script should load without any errors and the buttons should not throw an error and close the consent banner after the action.
Steps to Reproduce
Install the package with default configuration
Attempt to load a page that includes the cookie consent script
Proposed Fix
Change the default prefix in config/cookieconsent.php from:
'prefix' => 'cookie-consent',
to:
'prefix' => 'cookieconsent',
Additional Context
This issue affects the default configuration. Users who have published and modified their configuration may not experience this problem if they've already changed the prefix.
Environment
Laravel Version: 11
PHP Version: 8.3
Package Version: ^1.2
The text was updated successfully, but these errors were encountered:
Issue Description
The default configuration for the cookie consent url/route prefix includes a dash character, which causes a 500 Internal Server Error when trying to load the cookie consent script, which then causes the buttons to not work anymore, making the consent banner unusable.
Current Behavior
When attempting to load the cookie consent script, the following error occurs:
When attempting to click on the buttons, the following error occurs:
Expected Behavior
The cookie consent script should load without any errors and the buttons should not throw an error and close the consent banner after the action.
Steps to Reproduce
Proposed Fix
Change the default prefix in
config/cookieconsent.php
from:to:
Additional Context
This issue affects the default configuration. Users who have published and modified their configuration may not experience this problem if they've already changed the prefix.
Environment
The text was updated successfully, but these errors were encountered: