skorp/detect-incompatible-samesite-useragents
最新稳定版本:1.0.1
Composer 安装命令:
composer require skorp/detect-incompatible-samesite-useragents
包简介
Determine if UserAgent is incompatible with SameSite=None
README 文档
README
This class tries to determine the incompatible UserAgents for SameSite=None Attribute.
Installation
You can install this package via composer using this command:
composer require "skorp/detect-incompatible-samesite-useragents"
Usage
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 }
ported from : https://www.chromium.org/updates/same-site/incompatible-clients
Links about SameSite Cookie:
https://www.chromium.org/updates/same-site/incompatible-clients
https://web.dev/samesite-cookie-recipes/
https://www.netsparker.com/blog/web-security/same-site-cookie-attribute-prevent-cross-site-request-forgery
https://www.thinktecture.com/identity/samesite/prepare-your-identityserver/
Your feedback is welcome.
统计信息
- 总下载量: 2.49M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-28