bynk.http.cookie_samesite_none_insecure
Error A cookie literal with sameSite: SameSite.Unrestricted is not secure.
SameSite=None lets a cookie travel on cross-site requests, and browsers accept it only with Secure, so it is sent over HTTPS alone. Without it the browser drops the cookie and the login or session quietly fails, so Bynk refuses the literal. Remove secure: false, since the default is secure: true, or choose Lax or Strict if the cookie need not cross sites.
Example
Created("ok").withCookie(Cookie { name: "sid", value: "a", sameSite: SameSite.Unrestricted, secure: false }) // ✗
Created("ok").withCookie(Cookie { name: "sid", value: "a", sameSite: SameSite.Unrestricted }) // ✓In the Book
See also
- The grammar rule it governs:
http_handler. - Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.cookie_samesite_none_insecureshows the same from the installed toolchain, without a network.