Welcome Guest, Not a member yet? Register   Sign In
Error at Login - "The action you requested is not allowed
#3

(01-31-2023, 09:16 PM)kenjis Wrote: It is the error message when CSRF token check fails.
See https://codeigniter4.github.io/CodeIgnit...rgery-csrf

Hi Kenjis, many thanks for that link. I have read through it again. I cannot find my error. The code is a copy from another website that works. I merely changed the domain. Both use ssl, env changed domains, deleted all session just to be safe. I checked that the forms on both sites are identical and that the token is included in the form in both sites. I only except an Api and Admin route per below. Files permissions and ownership checked and are identical (drwxr-xr-x 2 www-data www-data 1327104 Feb 2 04:29 session). Any think I am missing. Much appreciate your feedback.

public $globals = [
'before' => [
'csrf' => ['except' =>
['Api/*', 'Admin/*'],
],
],
'after' => [
'toolbar',
],
];
Reply


Messages In This Thread
RE: Error at Login - "The action you requested is not allowed - by spreaderman - 02-02-2023, 03:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB