Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

lerni/samesite-cookie-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silverstripe 4.8 Composer installable patch for adding SameSite Cookie

This module patches according to silverstripe/silverstripe-framework#9920. With #10335 this is obsolet - 4.12 probable.

How it works

As in the PR stated you need to add...

// e.g. src/app/_config.php
//...
use SilverStripe\Control\Cookie;
use SilverStripe\Control\Session;
//...

// new configuration property for Cookie
Cookie::config()->set('samesite', 'Lax');

// new configuration property for Session
Session::config()->set('cookie_samesite', 'Lax');

Requirements

  • SilverStripe ~4.8 (just tested with that)

Credits

https://github.com/pine3ree

Installation

Use composer: composer require lerni/samesite-cookie-patch

About

SilverStripe 4.8 Composer installable patch to add SameSite Cookie - PR 9920 silverstripe/framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published