You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-02-21 12:32:32

diego.giacani
Member
From: Rome, Italy
Registered: 2020-10-16
Posts: 31

CSRF check failed

Hi,

my GLPI installation can be reached on two different ports: 443 and 8080. While Kerberos authentication via Apache is active on port 443 and GLPI automatically authorises users with the LDAP servers confgured within it, port 8080 is used for PCs outside the Active Directory domain and therefore users must authenticate themselves manually (either with domain users or GLPI's internal database).

I have no problem on port 443, but on 8080, after logging in, the user receives the error 'The action you have requested is not allowed.' and cannot use the software.

In the log files there is no PHP error, but in the access-errors.log file it reads:

CSRF check failed for User ID: at /front/login.php

I googled for a solution but could not find it. I stress that it is not a SeLinux problem, the error occurs whether it is active or inactive.

Thanks!

Last edited by diego.giacani (2023-02-21 12:35:20)

Offline

#2 2023-02-27 13:12:57

diego.giacani
Member
From: Rome, Italy
Registered: 2020-10-16
Posts: 31

Re: CSRF check failed

Hi, I'm still struggling with this problem. No one has any clues?
Thanks

Last edited by diego.giacani (2023-02-27 13:13:24)

Offline

#3 2023-03-07 12:20:15

cuhanhtuoi
Member
Registered: 2023-03-07
Posts: 3

Re: CSRF check failed

Hi mate. Please check "session.cookie_secure" in php.ini file. Disable it and restart the server may help you in this case.

Offline

#4 2023-03-07 12:21:36

diego.giacani
Member
From: Rome, Italy
Registered: 2020-10-16
Posts: 31

Re: CSRF check failed

Thank you, I had already tried that but nothing changed.
I had to force SSL on 8080 to make it work.

Offline

Board footer

Powered by FluxBB