Skip to content

docs: add spatie/laravel-csp integration example for modern CSP reporting#10

Merged
audunru merged 1 commit intomainfrom
docs/spatie-csp-report-to-integration
May 3, 2026
Merged

docs: add spatie/laravel-csp integration example for modern CSP reporting#10
audunru merged 1 commit intomainfrom
docs/spatie-csp-report-to-integration

Conversation

@audunru
Copy link
Copy Markdown
Owner

@audunru audunru commented May 3, 2026

Summary

  • Adds a spatie/laravel-csp code example to the "Modern Reporting API" section showing how to use Directive::REPORT_TO in a Policy class
  • Cross-references the existing reporting-endpoints middleware section
  • Documents the optional report_uri config for legacy browser fallback (Firefox/Safari), explaining that modern browsers ignore it when report-to is present

Test plan

  • Read the updated README and verify the new section renders correctly
  • Confirm the spatie snippet style is consistent with the existing legacy example above it

🤖 Generated with Claude Code

…ting

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@audunru audunru merged commit 4761dea into main May 3, 2026
2 checks passed
@audunru audunru deleted the docs/spatie-csp-report-to-integration branch May 3, 2026 08:28
@audunru
Copy link
Copy Markdown
Owner Author

audunru commented May 3, 2026

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant