Skip to content

Add SameSite cookie flag for CSRF protection #1980

@jekkos

Description

@jekkos

Most modern browsers now support the SameSite cookie flag, which signals that a site only accepts requests coming from the same domain. This might be an effective hardening measure against CSRF, as Ospos is not used in cross domain setups. This constraint will then of course only be enabled for users that have browsers with support for this flag.

  • Need to check on a browser compatibility table for this feature
  • Identify possible usecases in which ospos can be used across different domains (none?)
  • Check if CI framework offers this protection or add a custom hook to add it to the Cookie headers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions