Jump to content

About $config->protectCSRF


Karl_T
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

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