Skip to content

Comments

Add secure and httponly options for cookies#812

Open
cpadlab wants to merge 2 commits intobugy:masterfrom
cpadlab:feature/secure-cookies
Open

Add secure and httponly options for cookies#812
cpadlab wants to merge 2 commits intobugy:masterfrom
cpadlab:feature/secure-cookies

Conversation

@cpadlab
Copy link

@cpadlab cpadlab commented Feb 19, 2026

I have added the option to configure Secure and HttpOnly flags for cookies, as this prevents potential cookie theft or unauthorized access via scripts.

I have been testing this implementation locally on a server, and it works perfectly. To use it, the user only has to update the security section in the configuration file.


Example change in conf/conf.json:

From this:

"security": {
    "xsrf_protection": "token"
}

To this:

"security": {
    "xsrf_protection": "header",
    "cookie_secure": true,
    "cookie_httponly": true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant