Changing Session cookie - samesite v4.6.1 |
Hi all,
Using v4.6.1 - in app/Config/Cookie.php - after changing samesite setting to 'None' PHP Code: public string $samesite = 'None'; Console error is: Quote:Cookie “pm_id” has been rejected because it is in a cross-site context ... Still get cross-site errors. I'm doing this for testing, connecting to the remote CI4 server from localhost on local machine. I've tried using Cookie helper to no avail-: PHP Code: helper('cookie'); Is it possible to force samesite to 'None' for the CI session cookie? Many thanks, Mike
Just to confirm, are you the one setting up the cookie named "pm_id"? From your example, it seems the name is "session_id".
(1 hour ago)codeus Wrote:(7 hours ago)paulbalandan Wrote: Just to confirm, are you the one setting up the cookie named "pm_id"? From your example, it seems the name is "session_id". Confirmed: whether using 'session_id', or 'pm_id', the issue remains the same. I believe this is a bug. Any setting in Cookie $samesite appears to be overridden by the default Lax setting. |
Welcome Guest, Not a member yet? Register Sign In |