#CSRF token mismatch

8 messages · Page 1 of 1 (latest)

steep gulch
#

I know this is frequently asked but I couldn't solve it by myself. APP_URL is matching in the browser. Nginx not additional proxy, https, secure cookie, system log normal, laravel log empty.

Thanks for any help.

subtle locust
#

Is SESSION_SECURE_COOKIE set to true in the .env?

steep gulch
#

yep it is.

#

But I tried SESSION_SECURE_COOKIE=false before ...

wary vine
steep gulch
#

Redid it. Ensured via developer console that secure is not set. Still CSRF token mismatch. HttpOnly is set SameSite is Lax.

wild kindleBOT
#

@steep gulch; Enable SSL for your Panel with HTTPS protocol scheme in the APP_URL, or set SESSION_SECURE_COOKIE to false in your .env which is a hidden file located at /var/www/pterodactyl.

You can open it directly with nano /var/www/pterodactyl/.env. Refresh config cache with cd /var/www/pterodactyl && php artisan config:clear

steep gulch