Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dustingtaylor's avatar

Laravel Vapor UI + CSP

I'm using Laravel Vapor UI to track and retry failed jobs, but also needed to implement Spatie's Laravel CSP (https://github.com/spatie/laravel-csp). However, when doing this, and setting up the CSP to block inline scripts, vapor UI fails to load. We've also tried to setup the nonce, but it doesn't seem to get taken as part of the vapor ui package.

Is there any way around this?

0 likes
2 replies
Baldor's avatar

Same problem.

Vapor UI package does not provide publishing of views nor ability to pass nonce. :(

travis.elkins's avatar

Any updates on this from anyone...?

I'm having what may be a related problem...but with a filament-based app that is also deployed to vapor. The latest upgrade from v2 to v3 has changed the way the filament assets are served and the javascript files are now blocked by my browser. 😒

Please or to participate in this conversation.