Ich wollte nun das Token deaktivieren:
Code:
# config/config.yml
contao:
csrf_protection: false # Nicht empfohlen im Live-Betrieb!
Das führt beim Cache erneuern übder den CONTAO- Manager zu einer Fehlermeldung:
Code:
vendor/bin/contao-console cache:clear --no-warmup
$ /opt/plesk/php/8.3/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=UTC /var/www/vhosts/kfv-nwm.de/httpdocs/website/vendor/contao/manager-bundle/bin/contao-console cache:clear --env=prod --no-warmup
In ArrayNode.php line 327:
Unrecognized option "csrf_protection" under "contao". Available options are
"backend", "backup", "console_path", "crawl", "cron", "csp", "csrf_cookie_
prefix", "csrf_token_name", "editable_files", "error_level", "image", "inse
rt_tags", "intl", "localconfig", "locales", "mailer", "messenger", "pretty_
error_screens", "preview_script", "sanitizer", "search", "security", "uploa
d_path".
# Process terminated with exit code 1
# Result: General error