Skip to content

Some user agents are known to be incompatible with the `SameSite=None` attribute. This middleware for Laravel will try to determine and overwrite the Cookie value.

License

Notifications You must be signed in to change notification settings

skorp/laravel-samesite-incompatible-clients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel SameSite incompatible clients Middleware

Laravel

About

Some user agents are known to be incompatible with the SameSite=None attribute.
This middleware for Laravel will try to determine and overwrite the Cookie value.

Installation

You can install this package via composer using this command:

composer require "skorp/laravel-samesite-incompatible-clients"

Service provider will register itself.

you can publish the config file to make some changes.

php artisan vendor:publish --provider="Skorp\SameSite\SameSiteIncompatibleClientsProvider" --tag=config

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.

About

Some user agents are known to be incompatible with the `SameSite=None` attribute. This middleware for Laravel will try to determine and overwrite the Cookie value.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages