gitea/templates/repo/issue/sidebar
silverwind 42d294941c
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
..
allow_maintainer_edit.tmpl Show info about maintainers are allowed to edit a PR (#33738) 2025-02-27 16:47:00 +00:00
assignee_list.tmpl Improve labels-list rendering (#34846) 2025-06-27 23:12:25 +08:00
due_date.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
issue_dependencies.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
issue_management.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
label_list_item.tmpl Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
label_list.tmpl Improve labels-list rendering (#34846) 2025-06-27 23:12:25 +08:00
milestone_list.tmpl Fix some dropdown problems on the issue sidebar (#34308) 2025-04-30 02:00:36 +00:00
participant_list.tmpl Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
project_list.tmpl Fix some dropdown problems on the issue sidebar (#34308) 2025-04-30 02:00:36 +00:00
reference_link.tmpl Remove unused or abused styles (#33918) 2025-03-17 22:11:24 +08:00
reviewer_list.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
stopwatch_timetracker.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
watch_notification.tmpl Split issue sidebar into small templates (#32444) 2024-11-08 01:44:20 +00:00
wip_switch.tmpl Fix PR toggle WIP (#34920) 2025-07-01 16:32:39 +08:00