dryven / cookie-byte

Get full control over all your cookie-related settings right in the control panel: Create cookie categories, add code snippets, customise the cookie modal and activate cookie content covers that hide content as long as specific cookie categories are not accepted.
https://statamic.com/addons/dryven/cookie-byte
5 stars 2 forks source link

Console error #29

Closed dave-smyth closed 4 months ago

dave-smyth commented 8 months ago

When I add a <script> or <noscript> element inside a Code snippets block, Cookie Byte doesn’t load and there’s a console error on the frontend. This happens even if I choose HTML as the Code Snippet type. I’m guessing this is being interpreted as JS.

If I remove the <script> or <noscript> elements, Cookie Byte loads as normal.


Environment Laravel Version: 10.42.0 PHP Version: 8.2.10 Composer Version: 2.3.5 Environment: staging Debug Mode: ENABLED Maintenance Mode: OFF

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED

Drivers Broadcasting: log Cache: statamic Database: mysql Logs: stack / single Mail: sendmail Queue: sync Session: file

Statamic Addons: 6 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 4.46.0 PRO

Statamic Addons aryehraber/statamic-captcha: 1.10.0 ddm-studio/cookie-byte: 1.4.3 edalzell/forma: 2.1 spatie/statamic-responsive-images: 4.1.1 statamic-rad-pack/mailchimp: 4.1.1 withcandour/aardvark-seo: 3.0.0

dryven-daniel commented 4 months ago

Dear @websmyth,

thank you for pointing this out. Currently only plain javascript code is supported, but we are working on a solution where script tags can be included as well.

We will keep you updated.

dave-smyth commented 4 months ago

Thanks for getting back to me. I’ll close this for now as I didn’t use the add-on in the end.