Skip to content

Commit

Permalink
Merge pull request #45 from denizzzka/cookie_samesite_none
Browse files Browse the repository at this point in the history
Cookies: adds SameSite=None option
  • Loading branch information
s-ludwig authored Oct 24, 2024
2 parents 568224d + 11e5f1c commit 2979002
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/vibe/http/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ final class Cookie {
enum SameSite {
default_,
lax,
none,
strict,
}

Expand Down Expand Up @@ -845,6 +846,7 @@ final class Cookie {
case default_: break;
case lax: dst.put("; SameSite=Lax"); break;
case strict: dst.put("; SameSite=Strict"); break;
case none: dst.put("; SameSite=None"); break;
}
}

Expand Down

0 comments on commit 2979002

Please sign in to comment.