uviigideon / should-send-same-site-non
test given useragent and return should send same site none
Installs: 194 774
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
pkg:composer/uviigideon/should-send-same-site-non
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-09-16 22:08:23 UTC
README
this php package ship with this little help function
\Uvii\SameSiteNone::isSafe($useragent))
return bool to that indicate if the $useragent is safe for set cookie with SameSite=None
Note
The code is implement according to this pseudocode post
Test file is referenced from linsight/should-send-same-site-none which is a node library to solve this problem.