From b096fbd0099708e82a778f178132c3fb2207c305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20=C3=89pardaud?= Date: Tue, 7 Nov 2023 09:51:30 +0100 Subject: [PATCH] Workaround for globals bug in Qute when compiling for native --- .../src/main/resources/templates/tags/authenticityToken.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/src/main/resources/templates/tags/authenticityToken.html b/runtime/src/main/resources/templates/tags/authenticityToken.html index 8365582c..4154d665 100644 --- a/runtime/src/main/resources/templates/tags/authenticityToken.html +++ b/runtime/src/main/resources/templates/tags/authenticityToken.html @@ -1,3 +1,5 @@ +{! There appears to be a bug in native for globals, that require me to do this !} +{@io.quarkus.csrf.reactive.runtime.CsrfTokenParameterProvider csrf} {! It is possible to disable CSRF via configuration !} {#if data:csrf??}