laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

CSP nonce "Refused to apply inline style because it violates the following Content Security Policy directive

Open stanleykinkelaar opened this issue 8 months ago • 0 comments

After setting the CSP for the debugbar there is still an CSP error from the /_debugbar/assets/javascript?v=1739958968 file.

[Report Only] Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'nonce-x'". Either the 'unsafe-inline' keyword, a hash ('sha256-bSoYuq6ivc9mSVWyH8JlqmEVCNQ2HqLmxv/ruraeG94='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

Seems to be linking to the jQuery function Ae() part.

stanleykinkelaar avatar Feb 27 '25 14:02 stanleykinkelaar