Jump to content

Recommended Posts

Posted

Hello everyone. I got the error "This request was aborted because it appears to be forged"  and found the solution by adding $config->protectCSRF = false; to the config.php.

I got the error when I follow this tutorial https://processwire.com/talk/topic/2089-create-simple-forms-using-api/?page=1 and after submitting the form. I do not know much about protectCSRF but I think it is better to keep it as "$config->protectCSRF = false" disables protectCSRF in the whole site .

I would like to know any ways to solve this error while keeping  $config->protectCSRF = true; . Thank you.

Posted

Thanks for the link. I have googled it and the others. Session folder exists and the permission is 777.

Above is another solution I found, and Yes I am using Ubuntu too. However, I got the same error in both php5 and php7 setting.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...