PHP code example of crassula / detect-incompatible-samesite-useragents
1. Go to this page and download the library: Download crassula/detect-incompatible-samesite-useragents library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
crassula / detect-incompatible-samesite-useragents example snippets
use Skorp\Dissua\SameSite;
$shouldSendSameSiteNone = SameSite::handle('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130');
if(!$shouldSendSameSiteNone) {
//remove samesite attribute
}