Skip to content

Conversation

@StanBarrows
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 30, 2025 00:04
@StanBarrows StanBarrows merged commit 91a993f into production Jul 30, 2025
3 of 5 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR disables CSP (Content Security Policy) nonces by changing the default configuration from true to false and removes the custom csp_nonce() helper function that was previously used to retrieve nonces from Vite.

  • Changed default CSP nonce configuration from enabled to disabled
  • Removed custom CSP nonce helper function and its associated import

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
config/csp.php Changed default value for CSP nonce enablement from true to false
app/Support/helpers.php Removed csp_nonce() helper function and unused Vite facade import

* Note that this will make your CSP policy less secure.
*/
'nonce_enabled' => env('CSP_NONCE_ENABLED', true),
'nonce_enabled' => env('CSP_NONCE_ENABLED', false),
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

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

Disabling CSP nonces by default reduces security protection against XSS attacks. CSP nonces help prevent execution of unauthorized inline scripts. Consider keeping this enabled unless there's a specific compatibility requirement.

Suggested change
'nonce_enabled' => env('CSP_NONCE_ENABLED', false),
'nonce_enabled' => env('CSP_NONCE_ENABLED', true),

Copilot uses AI. Check for mistakes.
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.

2 participants