/shouldSendSameSiteNone

test given useragent and return should send same site none

Primary LanguagePHPMIT LicenseMIT

shouldSendSameSiteNone

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.