jojo/templates/user/settings
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
..
security feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
account.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
appearance.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications_oauth2.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
applications_oauth2_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications_oauth2_edit_form.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
applications_oauth2_list.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
blocked_users.tmpl [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
grants_oauth2.tmpl [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
hook_new.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys.tmpl Allow options to disable user ssh keys configuration from the interface on app.ini (#29447) 2024-03-11 23:36:57 +07:00
keys_gpg.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
keys_principal.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
keys_ssh.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Reduce margins on user settings page, introduce flex-container (#26046) 2023-07-31 07:16:03 +00:00
navbar.tmpl feat: Global 2FA enforcement (#8753) 2025-08-15 10:56:45 +02:00
organization.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
packages.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
packages_cleanup_rules_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
packages_cleanup_rules_preview.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
profile.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
repos.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
runner_edit.tmpl Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00
storage_overview.tmpl feat(ui): add quota overview (#6602) 2025-02-26 14:36:53 +00:00