#need help
26 messages · Page 1 of 1 (latest)
How to fix csrf token mismatch
@manic coral; 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
It's still the same, there's no change
Just had this issue.
Reboot host, clear cookies on browser for site. And ensure
The .env file reflects the above directions.
The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env
.env file is used for?
No change remains the same
The .env file holds all your global variables that are used as a sort of configuration file. If you open the file as listed above by the support bot you will see some details.
The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env
So, is there a way to fix it?
As it says above. On the host edit the file...... Change the setting to false.
Do I need to screenshot the .env file?
The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env
The 2nd paragraph of this message.
I have done it
Like that, right?
Yup. Save. Reboot server. Try login
No changes, bro
In the file, it's already false
- Edit env file
nano /var/www/pterodactyl/.env - Refresh config cache with
cd /var/www/pterodactyl && php artisan config:clear - Reboot host server
- Clear cookies on browser
You did all those steps?
Are you using SSL certificates? Or just http
The env file can be found at /var/www/pterodactyl/.env. Files starting with a . in Linux are hidden so it may not show up in file browsers by default. You can open it directly with nano /var/www/pterodactyl/.env
Wait
I use https and the tips you gave are still the same