Skip to content

[Discussion][Multi-Site] Future of cookies with SameSite and Secure #682

@ix5

Description

@ix5

As of 2021-01, Firefox 84 warns when hosting isso on a subdomain and accessing cookies.

Repro:

  • Isso hosted at comments.example.com
  • "Blog" hosted at example.com

Warning:

Cookie “isso-[id]” will be soon rejected because it has the “SameSite” attribute set to “None”. [...]

with a link to MDM SameSite cookies.

Cause:
In isso/views/comments.py, e.g. new() creates a new cookie with SameSite implicitly set to False and Secure implicitly set to None1.

Possible solutions

  1. Isso sets Secure cookie by default. Big problem is that large parts of isso assume that it might be accessed over http, see e.g. the default isso.conf
  2. Isso conditionally sets Secure cookie only for https hosts. Ugly but doable.

Help wanted
Would be great if someone who's more involved with web technology could step in and give their ideas and clarify whether my understanding here is even correct.

Footnotes

  1. For the full call chain, see the later X-Set-Cookie and the defaults of werkzeug's http.dump_cookie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions