drogonframework / drogonframework/drogon

Session-Cookie cannot be set to secure

Open
#2,072 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

**Describe the bug**
There is no way of setting a session to secure.

**To Reproduce**
1. Enable sessions, set samesite to `Lax` or anything other than `None`
2. Start the app and use curl or the browser to send a request
3. Look at the `Set-Cookie` header

**Expected behavior**
That a session cookie is by default, or can be set, to have the `Secure` attribute.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.