Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Csp Laravel Package

spatie/laravel-csp

Easily add Content Security Policy (CSP) headers to your Laravel app. Define and enforce CSP directives, report violations, and tighten what scripts, styles, and other resources can load or connect to—helping mitigate XSS and malicious third‑party code.

View on GitHub
Deep Wiki
Context7
3.23.0

What's Changed

  • Add Laravel 13 support
3.21.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.20.0...3.21.0

3.19.0
3.17.2

What's Changed

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.17.1...3.17.2

3.17.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.17.0...3.17.1

3.14.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.13.1...3.14.0

3.13.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.13.0...3.13.1

3.13.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.12.0...3.13.0

3.12.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.11.1...3.12.0

3.11.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.11.0...3.11.1

3.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.10.0...3.11.0

3.10.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.9.0...3.10.0

3.8.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.8.1...3.8.2

3.7.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.6.0...3.7.0

3.6.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.5.0...3.6.0

3.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.4.0...3.5.0

3.4.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-csp/compare/3.3.0...3.4.0

3.2.0
2.10.3

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.10.2...2.10.3

2.10.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.10.1...2.10.2

2.10.1
2.10.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.9.0...2.10.0

2.9.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.8.4...2.9.0

2.8.4

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.8.3...2.8.4

2.8.3
2.8.2

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.8.1...2.8.2

2.8.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-csp/compare/2.8.0...2.8.1

2.8.0
2.7.0
  • support Laravel 9
2.6.4
  • add support for PHP 8
2.6.3
  • add prefetch-src directive (#77)
2.6.2
  • add unsafe-hashes keyword
2.6.1
  • Add support for Laravel 8
2.6.0
  • added "report-to" directive (#71)
2.5.1
  • add websockets scheme support (#65)
2.5.0
  • Add Laravel 7 support
  • Add None override
2.4.0
  • Add Laravel 6.0 support
2.3.0
  • add webrtc-src directive
2.2.0
  • drop support for Laravel 5.7 and below
  • drop support for PHP 7.1 and below
2.1.3
  • add support for Laravel 5.8
2.1.2
  • replace str_random and starts_with helpers to its class based counterpart
2.1.1
  • use Arr:: and Str:: functions
2.1.0
  • add new script and style directives
2.0.0
  • moved most values in Value to Keyword
  • remove deprecated cspValue function
1.4.0
  • add possibility to change value to no value
1.3.3
  • support for Laravel 5.7
1.3.2
  • fix compatibility with Lumen
1.3.1
  • make compatible with Lumen
1.3.0
  • add value constant for data:
1.2.2
  • fix blade directive
1.2.1
  • improvements around quoting values
1.2.0
  • add csp_nonce function
1.1.0
  • add value constants
1.0.5
  • add support for PHP 7.0
1.0.4
  • fix blade directive
1.0.3
  • improve base profile
1.0.2
  • fix directory name
1.0.1
  • fix naming of classes
1.0.0

BROKEN VERSION, DO NOT USE

  • initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport