Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for all cookie options
The "cookie" options can now be an object, which will be forwarded to the "cookie" module. The previous syntax is still valid: ``` new Server({ cookieName: "test", cookieHttpOnly: false, cookiePath: "/custom" }) ``` but the new syntax add support for all options: ``` new Server({ cookie: { name: "test", httpOnly: false, path: "/custom" sameSite: "lax" } }) ``` Reference: https://github.com/jshttp/cookie#options-1 Backported from master: a374471
- Loading branch information