Skip to content

Conversation

nckrtl
Copy link
Contributor

@nckrtl nckrtl commented Aug 16, 2025

Boost Browserlogger won't work when CSP is enabled with a Vite provided nonce. This commit adds the Vite nonce when its detected.

Boost is meant for local development and CSP is often applied in production only. Yet for testing purposes CSP can be applied in the local environment as well, making it useful for Boost to support CSP nonces as well. Also, when implementing CSP it will produce console errors, so Boost Browserlogger could make implementing CSP a lot easier as well.

nckrtl and others added 3 commits August 16, 2025 10:26
Boost Browserlogger won't work when CSP is enabled with a Vite provided nonce. This commit adds the Vite nonce when its detected.

Boost is meant for local development and CSP is often applied in production only. Yet for testing purposes CSP can be applied in the local environment as well, making it useful for Boost to support CSP nonces as well.
…tes handling

Co-authored-by: Joost de Bruijn <joostdebruijn1993@gmail.com>
Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com>
Signed-off-by: Pushpak Chhajed <pushpak1300@gmail.com>
Copy link
Collaborator

@ashleyhindle ashleyhindle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪 Thank you!

@ashleyhindle ashleyhindle merged commit 4bd1692 into laravel:main Sep 18, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting cors error of script tag browser-logger-active
3 participants