Bug #15729
closedSession cookie warnings
100%
Description
PR: https://github.com/pfsense/pfsense/pull/4700
Firefox outputs warnings in the console about the cookies not having a samesite attribute, and that the attribute's value will be treated as "lax" if no changes are made.
Files
Updated by GChuf 6 about 2 months ago
- Status changed from Ready To Test to Feedback
- % Done changed from 0 to 100
Applied in changeset 61e5c10b7a3ae5a32db123668ada6fdcc67e7a00.
Updated by Christopher Cope about 1 month ago
- Status changed from Feedback to Confirmed
Tested on
24.11-ALPHA (amd64) built on Fri Oct 11 19:54:00 UTC 2024 FreeBSD 15.0-CURRENT
Several of the errors are no longer present, but it seems there are still some that aren't fixed, such as:
Cookie “treegrid-disks-0” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
Updated by GChuf 6 about 1 month ago
disks.widget.php has some additional cookie code that is causing the warning.
Since the cookies seem to be handled in auth.inc, I deleted some code from disks widget.
The warning has disappeared and the cookies look OK.
Updated by Marcos M about 1 month ago
- Subject changed from Add samesite attribute to session cookies to Address dashboard session cookie warnings
- Status changed from Confirmed to Resolved
- Target version set to 2.8.0
- Plus Target Version set to 24.11
The treegrid cookies for the Disk and ZFS widgets have been removed. With the widget-specific cookies removed, treegrid keeps the collapse state between both page reloads and widget refreshes.
Updated by Jim Pingle 19 days ago
- Tracker changed from Todo to Bug
- Subject changed from Address dashboard session cookie warnings to Session cookie warnings
- Category changed from Web Interface to Dashboard