Contact Form 7 not sending in Firefox: Shield Security blocks the REST API
Contact Form 7 sends forms through the WordPress REST API. On one site, forms worked in Google Chrome but silently failed in Firefox: no email, no success message. The cause was the Shield Security plugin blocking anonymous access to the REST API.
Problem: Contact Form 7 doesn’t send messages in Firefox, while in Google Chrome everything works.
Find the error in the Network tab
Open Firefox’s developer tools, switch to the Network tab and submit the form. Find the request to the CF7 feedback endpoint (/wp-json/contact-form-7/v1/contact-forms/…/feedback). Its response looks like this:
{
"code": "shield_block_anon_restapi",
"message": "Anonymous access to the WordPress Rest API has been restricted by Shield.",
"data": { "status": 401 }
}
A visitor who sends a contact form is not logged in, so for the REST API the request is anonymous, and Shield rejects it.
Fix: allow anonymous REST API access in Shield
The reason is the Shield Security option Anonymous Rest API. Go to Shield Security → Lockdown → API & XML-RPC → Anonymous Rest API and set it to Disable. If you want to keep the protection, check whether your Shield version has a list of exceptions for this option and add the contact-form-7 namespace there.
Why only one browser?
The block doesn’t depend on the browser: the same request fails everywhere. If the form seems to work in another browser, that browser is most likely serving an older cached copy of the page or the script, or you are logged in to WordPress there, and logged-in users are not anonymous. Test in a private window to see what a real visitor gets.
Other security plugins
Other security plugins and firewalls can block the REST API in the same way. If a form fails, the Network tab shows the plugin’s own error code in the response, which tells you where to look. Contact Form 7 sends forms through the REST API since version 4.8, so blocking the REST API for visitors always breaks it.