Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: There is no Cookie Prefix on this cookie #245

Closed
wants to merge 27 commits into from

Conversation

Fraenkiman
Copy link
Collaborator

@Fraenkiman Fraenkiman commented Jun 11, 2023

Fixes #155

  • Creates a more robust cookie with __secure- prefix and increases the acceptance of compatible browsers.

fp-cookie

This prefix is the more relaxed in terms of the restrictions it applies but is still useful. You simply prefix your cookie and a compliant browser will enforce it:

Set-Cookie: __Secure-sess=123; path=/; Secure

The __secure prefix signals to the browser that the SecureAttribute is required.

In addition, the problem that you cannot log in to the admin area via a non-HTTPS connection has been fixed. Reported by @prbt2016 in #371. Many thanks also at this point. Also #375 was created as a suggestion.

@Fraenkiman Fraenkiman changed the title Sets the secure attribute for FlatPress cookies Fixes: There is no Cookie Prefix on this cookie Feb 2, 2024
@azett azett added this to the FlatPress 1.3.1 milestone Feb 3, 2024
- A cookie that comes via an HTTP connection cannot have the "secure" flag and the "__secure-" attribute.
- A cookie that comes via an HTTP connection must not have the "samesite" value "None", "Lax" or "Strict".
- Cookies with the "secure" and "HTTPONLY" attribute are only permitted to be sent via HTTPS.
- A cookie that comes via an HTTP connection cannot have the "secure" flag and the "__secure-" attribute.
- A cookie that comes via an HTTP connection must not have the "samesite" value "None", "Lax" or "Strict".
- Cookies with the "secure" and "HTTPONLY" attribute are only permitted to be sent via HTTPS.
@azett
Copy link
Member

azett commented Apr 21, 2024

Worked into Branch issue371_httphttps - excellent work!

@azett azett closed this Apr 21, 2024
@Fraenkiman Fraenkiman deleted the upstream/issue155 branch May 19, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give the cookie fpsess_fp-* a prefix
2 participants