jeffersongoncalves/laravel-goatcounter
Laravel GoatCounter offers a simple integration with GoatCounter, the lightweight, privacy-friendly analytics platform. Configure your site code, inject the tracking script, and count page views without cookies or personal data collection.
'unsafe-inline' from script-src (a common requirement for SOC 2, pen-test remediation, or enterprise security questionnaires), this release removes a concrete blocker. You can now adopt the package and nonce-based CSP in the same quarter instead of sequencing them.<script> tag — an easy thing to get 95% right and then regress. If this package is already in the stack, nonce support is a reason to keep it rather than replace it with bespoke code.script-src is a standard line item in vendor security reviews and procurement gates. This is a "we can now sell into that segment without an exception request" decision, not just an engineering nicety.Adopt when:
<script> tags server-side via this package and expect to run a nonce-based script-src policy — with Laravel's Vite nonce or a headers package like laravel-security-headers.Look elsewhere or defer when:
Verify before committing: that the nonce is applied to every script path the package emits (not just the common one), and that behaviour is unchanged when no nonce is configured.
To executives: This is a small, low-risk upgrade to a dependency we already use that removes a known obstacle to tightening our browser security policy. Practically, it means we can tell enterprise customers and auditors that our script policy no longer relies on 'unsafe-inline' — a common procurement and security-review question — without funding a separate engineering project. No migration cost, no breaking change, no customer-visible behaviour change today.
To engineering: The package now propagates Laravel's Vite CSP nonce onto the <script> tags it renders whenever the app sets one (e.g. via laravel-security-headers). If no nonce is configured, behaviour is identical to before — it is purely additive. Upgrade on the normal cadence, then confirm nonce coverage across all script emission points and re-run your CSP report-only pass before enforcing.
How can I help you explore Laravel packages today?