If REST API is disabled form can’t be sent
-
Hi there,
We have noticed today that now Contact Form 7 needs the REST API enabled to check the fields of a form and send the form.
We run the plugin Disable REST API on many of our sites because we don’t need the REST API and we want to reduce security risks.
Now we have noticed that when the plugin is enables (and therefore REST API disabled) after clicking on send nothing happens and the wheel keeps spinning.
In the console we see following errors:
Failed to load resource: the server responded with a status of 401 (Unauthorized) /wp-json/contact-form-7/v1/contact-forms/9206/feedback
and
Failed to load resource: the server responded with a status of 401 (Unauthorized)
If we click on either of them we get some more information:
{"code":"rest_cannot_access","message":"Only authenticated users can access the REST API.","data":{"status":401}}
That’s why we tried to disable the Disable REST API plugin and the form worked again.
Is there a reason why you rely on the REST API which before was not needed?
Can we disable the use of the REST API by Contact Form 7?
Best regards from Spain.
- The topic ‘If REST API is disabled form can’t be sent’ is closed to new replies.