mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-07-21 21:02:18 +00:00
This adds support for enabling the HttpOnly flag for cookies. Setting this default option value to false makes it a conservative, backwards-compatible change. By using the HttpOnly flag, sites stay working even when using strict cookie consent management tools, which is frequently used in EU sites to comply with GDPR and ePrivacy directive. The tests for setting cookies have been merged into a single table-driven test structure, adding a test case for toggling the HttpOnly option, while also adding a proper assertion for the custom expiration option. Assisted-by: Claude Opus 4.8 via Claude Code Signed-off-by: Timon de Groot <[email protected]>