fix: prevent stale htmx cache on login potentially causing csrf issues

addresses #869dd1fch
This commit is contained in:
Björn Fromme
2026-07-10 14:30:31 +02:00
parent 2b957e1887
commit 9660149c67
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -9,9 +9,8 @@ framework:
# Remove or comment this section to explicitly disable session support. # Remove or comment this section to explicitly disable session support.
session: session:
handler_id: null handler_id: null
cookie_secure: auto cookie_secure: true
# cookie_samesite: lax cookie_samesite: lax
cookie_samesite: none # this is to make login work in staging environment. to be removed when going live!
#esi: true #esi: true
#fragments: true #fragments: true
@@ -45,7 +45,7 @@
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %} {% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
{% endif %} {% endif %}
<form action="{{ path('app_login') }}" method="post"> <form action="{{ path('app_login') }}" method="post" hx-history="false">
<div class="mb-4"> <div class="mb-4">
<label for="username" class="mb-1 font-semibold text-white"> <label for="username" class="mb-1 font-semibold text-white">
E-Mail: E-Mail:
+1 -1
View File
@@ -11,7 +11,7 @@
{% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %} {% include '_partials/_alert.html.twig' with { 'level': 'error', messages: [ error.messageKey|trans(error.messageData, 'security') ] } %}
{% endif %} {% endif %}
<div class="pb-4"> <div class="pb-4">
<form action="{{ path('app_login') }}" method="post"> <form action="{{ path('app_login') }}" method="post" hx-history="false">
<div class="mb-4"> <div class="mb-4">
<label for="username" class="mb-1 font-semibold text-white"> <label for="username" class="mb-1 font-semibold text-white">
E-Mail: E-Mail: