diff --git a/src/Express.re b/src/Express.re index 52980f8..655783e 100644 --- a/src/Express.re +++ b/src/Express.re @@ -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); diff --git a/src/Express.rei b/src/Express.rei index 4838cc2..023191f 100644 --- a/src/Express.rei +++ b/src/Express.rei @@ -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 @@ -236,7 +236,7 @@ module Response: { ~secure: bool=?, ~signed: bool=?, ~path: string=?, - ~sameSite: [ | `Lax | `Strict]=?, + ~sameSite: [ | `Lax | `Strict | `None]=?, t ) => t;