Conversation
📝 WalkthroughWalkthroughA CSP script-src hash value was updated in the secure headers configuration, and JavaScript in a Vue application view was refactored to construct gallery navigation URLs client-side using the document base URL instead of server-generated Laravel route() calls. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9a4db783-567b-4baf-af34-6723abccadd2
📒 Files selected for processing (2)
config/secure-headers.phpresources/views/vueapp.blade.php
- Switch from full Vue build (with compiler) to runtime-only build - Runtime-only build doesn't require unsafe-eval CSP directive - Update app initialization to pass root component to createApp() - Explicitly disable unsafe-eval in DisableCSP middleware for production - Development mode (with hot reload) continues to disable CSP entirely The full Vue build includes template compiler which uses new Function() internally, requiring unsafe-eval. Since we use pre-compiled .vue SFCs, the runtime-only build is sufficient and more secure. Closes #4158
Summary by CodeRabbit
Chores
Refactor