Skip to content

Commit

Permalink
Merge pull request #82 from maxkorp/samesite-cookies-none
Browse files Browse the repository at this point in the history
Add explicit None option to SameSite cookies
  • Loading branch information
ncthbrt authored Oct 8, 2020
2 parents a656eb8 + 233a50c commit d1b4ea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Express.re
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ module Response = {
[@bs.send.pipe: t]
external clearCookie_ : (string, 'a) => unit = "clearCookie";
[@bs.deriving jsConverter]
type sameSite = [ | [@bs.as "lax"] `Lax | [@bs.as "strict"] `Strict];
type sameSite = [ | [@bs.as "lax"] `Lax | [@bs.as "strict"] `Strict | [@bs.as "none"] `None];
external toDict : 'a => Js.Dict.t(Js.nullable('b)) = "%identity";
let filterKeys = obj => {
let result = toDict(obj);
Expand Down
4 changes: 2 additions & 2 deletions src/Express.rei
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ module Response: {
~secure: bool=?,
~signed: bool=?,
~path: string=?,
~sameSite: [ | `Lax | `Strict]=?,
~sameSite: [ | `Lax | `Strict | `None]=?,
~domain: string=?,
Js.Json.t,
t
Expand All @@ -236,7 +236,7 @@ module Response: {
~secure: bool=?,
~signed: bool=?,
~path: string=?,
~sameSite: [ | `Lax | `Strict]=?,
~sameSite: [ | `Lax | `Strict | `None]=?,
t
) =>
t;
Expand Down

0 comments on commit d1b4ea5

Please sign in to comment.