Karl_T Posted November 25, 2016 Share Posted November 25, 2016 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. Link to comment Share on other sites More sharing options...
flydev Posted November 25, 2016 Share Posted November 25, 2016 Hi @Karl_T, the problem is not inside the code. Please check this thread : 1 Link to comment Share on other sites More sharing options...
Karl_T Posted November 25, 2016 Author Share Posted November 25, 2016 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now