Keep getting the error “CSRF token mismatch”

I think this is a serious problem. From version 3.6.7, we keep getting the error “CSRF token mismatch”. We don’t load the csrf component. We don’t need it for restful api. Who can tell me how to disable csrf check?

You should not get the error if the component is not loaded. Are you sure it is not loaded in AppController.php or in any other controllers?

Are you sure in the view or in your javascript the token is not set manually?

I am sure the component is not loaded. I am developing restful apis. CSRF is unuseful. This problem only happens from version 3.6.7 to 3.6.10.

maybe you updated Application.php from skeleton app?

1 Like

oh really! Thank you a lot!