jojo/templates/user/auth
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
..
activate.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
captcha.tmpl Defer captcha script loading (#33919) 2025-04-01 02:28:02 +02:00
change_passwd.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
change_passwd_inner.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
finalize_openid.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
forgot_passwd.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
grant.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
grant_error.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
link_account.tmpl [UI] Fix inconsitencies in link/login account page 2024-08-09 10:52:17 +02:00
oauth_container.tmpl Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
oidc_wellknown.tmpl fix: remove trailing slash from the issuer in oauth claims (#8028) 2025-06-10 20:46:17 +02:00
prohibit_login.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
reset_passwd.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
signin.tmpl Refactor login page (#31530) 2024-07-07 14:22:44 +05:00
signin_inner.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
signin_openid.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
signup.tmpl Refactor login page (#31530) 2024-07-07 14:22:44 +05:00
signup_inner.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
signup_openid_connect.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
signup_openid_navbar.tmpl [Port] gitea#29982 Introduce .secondary-nav and handle .page-content spacing universally 2024-03-28 16:43:09 +01:00
signup_openid_register.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
twofa.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
twofa_scratch.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
webauthn.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
webauthn_error.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00