Skip to content

Commit

Permalink
Adds SameSite=None cookie option
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Oct 23, 2024
1 parent 568224d commit 11e5f1c
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 11e5f1c

Please sign in to comment.