Skip to content

Table-Manager wie verlinkt man vom Frontend in den Datensatz? #15

Answered by skerbis
skerbis asked this question in Q&A
Discussion options

You must be logged in to vote

Lösung

Die CSRF-Tokens für das Frontend und für das Backend unterscheiden sich.
Hier hilft es die Umgebung temporär umzuschalten so dass die CSRF-Generierung in der richtigen Umgebung ausgeführt wird.

Vor Erstellung des CSRF-Codes

rex::setProperty('redaxo', true);

ausführen.

Danach wieder mit

rex::setProperty('redaxo', false);

zurücksetzen

Replies: 1 comment

Comment options

skerbis
Aug 10, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by skerbis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
YForm AddOn YForm related
1 participant