uviigideon / should-send-same-site-non
test given useragent and return should send same site none
Package info
github.com/uviigideon/shouldSendSameSiteNone
pkg:composer/uviigideon/should-send-same-site-non
V1.0
2020-01-16 02:39 UTC
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2026-03-16 23:12:01 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.