alexsoft / cross-origin-protection
Cross Origin Protection middleware that uses Sec-Fetch-Site and Origin headers
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 3
pkg:composer/alexsoft/cross-origin-protection
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- php-http/discovery: ^1.17
- phpstan/phpstan-strict-rules: ^2.0
- psr/http-factory: ^1.1
- psr/http-factory-implementation: *
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.48.2
- guzzlehttp/psr7: ^2.8
- phpstan/phpstan: ^2.1.31
- phpunit/phpunit: ^10.5.58
This package is auto-updated.
Last update: 2025-11-09 19:53:29 UTC
README
This library is a port of CrossOriginProtection component from Go.
You can read an introduction to the mentioned Go component here: alexedwards.net/blog/preventing-csrf-in-go.