COOKIE_SECURE doesn't flag _csrf cookie as 'Secure' #715

Closed
opened 2025-11-02 03:33:57 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @eripa on GitHub (May 16, 2017).

  • Gitea version (or commit ref): 1.1.1
  • Git version: 2.1.4
  • Operating system: Debian GNU/Linux 8.8 (jessie) x86_4
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I was under the impression that setting COOKIE_SECURE to true will make all cookies have the 'Secure' flag set. However it only seem to apply to the i_like_gitea cookie.

https://try.gitea.io doesn't seem to be configured with COOKIE_SECURE.

Originally created by @eripa on GitHub (May 16, 2017). - Gitea version (or commit ref): 1.1.1 - Git version: 2.1.4 - Operating system: Debian GNU/Linux 8.8 (jessie) x86_4 - Database: - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description I was under the impression that setting COOKIE_SECURE to true will make all cookies have the 'Secure' flag set. However it only seem to apply to the i_like_gitea cookie. https://try.gitea.io doesn't seem to be configured with COOKIE_SECURE.
GiteaMirror added the topic/security label 2025-11-02 03:33:57 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#715