Closed
Description
- Gitea version (or commit ref): 1.6.2
- Git version: 2.20.1
- Operating system: CentOS 7
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) https://observatory.mozilla.org/analyze/try.gitea.io, see "Anti-CSRF tokens set without using the SameSite flag"
- No
- Not relevant
- Log gist: N/A
Description
The SameSite setting should be enabled on the session and CSRF cookies as an added prevention against CSRF. Mozilla does a good job of explaining its purpose, but the gist is that it prevents cookies being sent in a request initiated from a foreign origin.
Screenshots
N/A