gitea/templates/org
silverwind 42d294941c
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-container (push) Waiting to run
Replace CSRF cookie with CrossOriginProtection (#36183)
Removes the CSRF cookie in favor of
[`CrossOriginProtection`](https://pkg.go.dev/net/http#CrossOriginProtection)
which relies purely on HTTP headers.

Fixes: https://github.com/go-gitea/gitea/issues/11188
Fixes: https://github.com/go-gitea/gitea/issues/30333
Helps: https://github.com/go-gitea/gitea/issues/35107

TODOs:

- [x] Fix tests
- [ ] Ideally add tests to validates the protection

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-25 12:33:34 +02:00
..
member Refactor template helper (#34819) 2025-06-24 01:27:35 +08:00
projects Add fullscreen mode as a more efficient operation way to view projects (#34081) 2025-04-23 13:42:22 +08:00
settings Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
team Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
worktime Worktime tracking for the organization level (#19808) 2025-02-03 01:51:12 +08:00
create.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
follow_unfollow.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
header.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
home.tmpl Forks repository list page follow other repositories page (#34784) 2025-06-21 12:27:25 -07:00
menu.tmpl refactor organization menu (#33928) 2025-04-10 12:12:55 -07:00
worktime.tmpl Worktime tracking for the organization level (#19808) 2025-02-03 01:51:12 +08:00