jojo/templates/user
Gusted a4642af51a feat: replace cross origin protection (#9830)
Replace the anti-CSRF token with a [cross origin protection by Go](https://go.dev/doc/go1.25#nethttppkgnethttp) that uses a stateless way of verifying if a request was cross origin or not. This allows is to remove al lot of code and replace it with a few lines of code and we no longer have to hand roll this protection. The new protection uses indicators by the browser itself that indicate if the request is cross-origin, thus we no longer have to take care of ensuring the generated CSRF token is passed back to the server any request by the the browser will have send this indicator.

Resolves forgejo/forgejo#3538

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9830
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-10-29 22:43:22 +01:00
..
auth feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
dashboard feat(ui): implement new buttons for better cohesiveness (#9359) 2025-10-05 05:22:32 +02:00
notification feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
overview feat(UI): add package counter to repo/user/org overview pages 2024-07-31 12:40:24 +02:00
settings feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
code.tmpl Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
heatmap.tmpl Fix heatmap localization 2024-03-20 08:20:08 +01:00
profile.tmpl feat: allow any README for .profile (#8798) 2025-09-01 13:58:00 +02:00