-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR CSRF token mismatch #2719
Comments
Most likley your php version is out of date. Try asking for help here 1st https://discord.gg/PN6eYsBY if that's the solution close the issue please ^.^ |
Thanks for your help, But I am using PHP7.4 with Mysql 5.7 :( |
Panel logs would be usefull |
There is no logs :( the file is empty, I will try to reinstall the panel in ubuntu, thanks |
There has to be a log if you get an error ^.^ try to go to the panel again and than run the log command |
I checked it again and it was really not there :( [root@localhost ptero.rainyun.com]# tail -n 100 /www/wwwroot/ptero.rainyun.com/storage/logs/laravel-$(date +%F).log | nc bin.ptdl.co 99 |
I got the same Error and the log is the following:
Probably this can help? |
Usually clearing Cookies fixes that error. (Atleast for me) |
Are you using a ssl configuration with http:// connection? |
@alexevladgabriel I am not using https at that time. I simply reinstall the OS and reinstall the panel again, it works now, thank you all. |
This is unfortunately still an issue, running PHP 7.4.13. Not sure what is happening but there is no information to suggest any issues. Nothing is to be found in the logs. |
Site is running on HTTPS. |
No SSL here. It fails on creating a cookie "XSRF-TOKEN" because it wants to set it as secure and non-https cookies can't be set as secure. Fix for that:
In the .env |
This would not change anything because the default value is already false: https://github.com/pterodactyl/panel/blob/develop/config/session.php#L163 |
Same issue here on Ubuntu Server 20.10 running Apache & PHP 7.14
|
This worked for me, thanks! |
This also worked for me. I was using a custom installer script though. |
Worked for me. I used https first instead of http... |
We don't offer any installers. If you have an issue with such, contact the author of it directly. The fix is above should someone stumble upon this in the future. The value depends on what protocol scheme you choose during installation, and also, our support bot in Discord can respond to this issue. |
Background:
Describe
I've installed the latest 1.1.1 version panel in my CentOS 7 server, after the setup, I was trying to login in the panel, and then I've got an error with message CSRF token mismatch, http code 419.
The login form with X-CSRF-Token header is empty, I think something is wrong, is that a bug?
The text was updated successfully, but these errors were encountered: