A common WordPress problem occurs when a Contact Form 7 form gets stuck loading after clicking Submit.
The loading spinner continues indefinitely, and the visitor never sees a success or error message.
However, after using the security plugin’s Disable All Security Features option, the same form suddenly works and displays:
Your message has been sent.
This result provides an important clue: the issue is likely caused by a security rule interfering with Contact Form 7’s submission request.
The wording Disable All Security Features strongly suggests the site is using All-In-One Security (AIOS), formerly called All In One WP Security & Firewall.
AIOS has an option with that exact label, and its developers have previously confirmed conflicts between certain firewall settings and Contact Form 7.
Why Contact Form 7 Gets Stuck on the Loading Spinner
Contact Form 7 submits forms asynchronously through the WordPress REST API.
Instead of reloading the entire page, the form sends an HTTP request to an endpoint similar to:
https://example.com/wp-json/contact-form-7/v1/contact-forms/123/feedback
Here, 123 represents the Contact Form 7 form ID.
The normal process looks like this:
Visitor clicks Submit
↓
Contact Form 7 sends REST API request
↓
WordPress receives form data
↓
Contact Form 7 validates the submission
↓
Email processing runs
↓
WordPress returns JSON response
↓
Contact Form 7 displays success or error
However, if a security plugin blocks the REST API request:
Visitor clicks Submit
↓
Loading spinner starts
↓
Security firewall blocks the request
↓
Contact Form 7 receives no usable response
↓
Spinner remains active
The form may appear to be submitting continuously, even though the request has already been rejected.
Contact Form 7’s official documentation confirms that its AJAX submissions require the WordPress REST API.
Source: Contact Form 7 — REST API is deactivated on my site
Most Likely Cause: AIOS Blocks Unauthorized REST API Requests
The first setting to investigate is:
AIOS → Firewall → PHP Rules → WP REST API
Look for:
Disallow unauthorized REST requests
When this restriction is enabled, AIOS can prevent logged-out visitors from accessing REST endpoints that are not explicitly permitted.
This becomes a problem because public contact forms must accept submissions from visitors who are not logged into WordPress.
For example:
Logged-in administrator:
REST request may be allowed
Logged-out website visitor:
REST request may be rejected
A visitor clicking Submit may receive:
403 Forbidden
instead of Contact Form 7’s expected JSON response.
The form then stays in its loading state.
This conflict has been confirmed in WordPress.org support discussions for AIOS.
Source: AIOS Blocks Contact Forms 7 — WordPress.org Support
Fix 1: Allow Contact Form 7 Through the AIOS REST API Firewall
This is the preferred solution when the REST API restriction is confirmed as the cause.
Rather than disabling all website security, allow the Contact Form 7 REST namespace.
Navigate to:
AIOS → Firewall → PHP Rules → WP REST API
Look for the REST route allowlist or whitelist.
In supported AIOS versions, Contact Form 7 may appear as:
contact-form-7
Enable the allowlist entry for this namespace.
Save the settings.
Then open the contact form in a private/incognito browser window and submit a test message.
If the submission succeeds, you have identified the conflicting restriction.
The advantage is that the other AIOS firewall features remain active.
Important: Allowing the Contact Form 7 namespace permits the public form endpoint to receive submissions. It does not bypass Contact Form 7’s own validation and anti-spam checks. However, its public submission endpoint still needs appropriate spam and abuse protection.
AIOS added REST API route whitelisting in version 5.3.10, allowing more selective configuration instead of disabling the restriction globally.
Source: All-In-One Security — WordPress.org Changelog
Fix 2: Disable Only the Unauthorized REST Request Restriction
If the allowlist is unavailable, another diagnostic option is to disable:
Disallow unauthorized REST requests
Do not use:
Disable All Security Features
unless you are performing a brief, controlled troubleshooting test.
Disabling the REST restriction allows public REST requests to reach WordPress again, subject to the permissions and security controls applied by WordPress and individual endpoints.
It is a broader change than allowlisting Contact Form 7, but substantially narrower than disabling every AIOS security feature.
After saving the setting, test the form as a logged-out visitor.
If Contact Form 7 starts working immediately, that is strong evidence that the REST access rule was responsible.
Fix 3: Check Other AIOS Firewall Rules
If changing the REST API setting does not help, the next suspects are other AIOS firewall protections.
AIOS support has recommended checking these settings when Contact Form 7 requests are blocked:
| AIOS setting | Possible effect |
|---|---|
| Deny bad query strings | Rejects requests containing patterns the firewall considers unsafe |
| Advanced character string filter | May reject certain submitted characters |
| 6G firewall rules | Can block requests that match firewall signatures |
| Legacy 5G protection | May interfere with requests on installations where still enabled |
| Cookie-based brute force protection | Can cause request or session-related conflicts |
| AIOS CAPTCHA integration | May reject submissions if the CAPTCHA integration fails |
These are possible causes, not proof that any particular setting is responsible for the reported incident.
Test one setting at a time, using the same form and browser session conditions, and restore protections that are not responsible.
Avoid disabling all firewall rules permanently.
Source: AIOS — Blocked File Uploads in Form
How to Identify Exactly What Blocks the Submission
Before making further changes, inspect the failing request in your browser.
Step 1: Open Developer Tools
In Chrome or Edge, open the contact form page.
Press:
F12
Select:
Network
Choose the Fetch/XHR filter, if available.
Step 2: Submit the Form
Complete the fields and click Submit.
Look for a request containing:
/contact-form-7/v1/contact-forms/
or:
feedback
Step 3: Check the HTTP Response
The response status provides a valuable clue.
| Response | What it suggests |
|---|---|
200 OK with mail_sent | Contact Form 7 processed the submission and reported success |
200 OK with spam or validation_failed | Contact Form 7 rejected the submission through its own checks |
401 Unauthorized | Authentication or REST restriction |
403 Forbidden | Security plugin, firewall or access-control rule |
404 Not Found | REST endpoint unavailable or incorrectly routed |
500 Internal Server Error | Server/PHP error or another plugin conflict |
503 Service Unavailable | Server or protective service unavailable |
| Request pending or blocked | Network, firewall, proxy or server response problem |
| No request appears | JavaScript or script-loading problem |
A 200 alone does not prove the email was sent. The JSON response status matters.
If the browser shows:
403 Forbidden
while AIOS security is enabled, but:
200 OK
with a successful Contact Form 7 response after the appropriate rule is disabled, that is much stronger evidence of the cause.
Why Disabling All Security Features Makes It Work
The AIOS Disable All Security Features control affects multiple protective features simultaneously.
These may include application-level restrictions and firewall configuration.
Consequently, if the form works after pressing that button, the test establishes that the original security configuration was interfering with submission.
It does not establish which individual setting caused the problem.
For example, several different protections could be responsible:
AIOS Security Enabled
↓
REST API restriction active
↓
Contact Form 7 POST rejected
↓
Spinner keeps loading
AIOS Security Disabled
↓
REST API request allowed
↓
Contact Form 7 processes message
↓
"Your message has been sent"
But the same overall result might occur if a different AIOS request-filtering rule was responsible.
That is why testing one setting at a time is important.
What If the REST API Setting Is Already Disabled?
If:
Disallow unauthorized REST requests
is already disabled, investigate the remaining AIOS features.
The next best step is to inspect the exact failed Network request and the AIOS audit/debug logs.
Look for the timestamp, requested URL, HTTP response, rule triggered and any blocked-request entry.
If the response is a 403, inspect both AIOS and other security layers such as Cloudflare or your hosting provider’s web application firewall.
If the response is a 500, inspect the PHP error log.
If there is no Network request, inspect the browser Console for JavaScript errors and check whether caching or JavaScript optimization has affected Contact Form 7’s scripts.
Contact Form 7’s official FAQ recommends investigating plugin/theme conflicts when the spinner starts but nothing happens.
Source: Contact Form 7 — Spinner Keeps Spinning
Do Not Disable All Security Features Permanently
Leaving the security plugin fully disabled is not a suitable long-term solution.
It may remove protection against:
- suspicious login attempts;
- malicious HTTP requests;
- brute-force attacks;
- firewall-blocked traffic;
- other attacks addressed by the plugin.
A public contact form needs to be reachable, but the rest of the site’s protections should remain functional.
The preferred objective is:
AIOS Security: Enabled
Firewall: Enabled
Contact Form 7 REST endpoint: Allowed
Contact Form 7 anti-spam checks: Enabled
After implementing the fix, verify that the security settings you intend to keep have actually been restored.
What About CAPTCHA and Spam Protection?
AIOS also offers CAPTCHA functionality for Contact Form 7.
A CAPTCHA problem can prevent a form submission from being accepted.
However, a normal Contact Form 7 spam rejection should generally return a meaningful submission status rather than simply leave the spinner active indefinitely.
This is an important distinction.
If the Network request returns valid JSON with:
{
"status": "spam"
}
then the problem is different from a blocked REST API request.
At that point, investigate CAPTCHA, Akismet and other anti-spam checks.
Do not assume that every Contact Form 7 failure is caused by the REST API firewall.
What Should Be Checked After the Fix?
After the form displays:
Your message has been sent.
Verify that the email actually arrives.
Contact Form 7’s success message indicates the WordPress mail-sending function reported success, but it does not guarantee that the email reached its destination inbox.
Check the receiving mailbox, spam folder and mail logs if necessary.
Source: Contact Form 7 — FAQ
Also test the form as a logged-out visitor. A form that works only for administrators is not fixed for public use.
Recommended Troubleshooting Order
- Identify whether the security plugin is All-In-One Security (AIOS).
- Back up or export its current configuration before changing further settings.
- Reproduce the failure in an incognito window.
- Inspect the Contact Form 7
feedbackrequest in Developer Tools. - Check AIOS → Firewall → PHP Rules → WP REST API.
- Allowlist
contact-form-7if the REST restriction is blocking it. - If necessary, temporarily disable only Disallow unauthorized REST requests to confirm the cause.
- If that does not fix it, investigate the other firewall rules individually.
- Restore all unrelated security protections.
- Test the form again and verify that the message is actually delivered.
Final Answer: What Caused Contact Form 7 to Keep Looping?
Based on the reported behavior, the most likely cause is a conflict between Contact Form 7 and All-In-One Security’s REST API or firewall protection.
The phrase Disable All Security Features strongly suggests AIOS, and AIOS developers have specifically documented that the Disallow unauthorized REST requests option can interfere with Contact Form 7.
When that happens, Contact Form 7’s background submission request may be rejected before the message can be processed, leaving the form stuck on its loading spinner.
The first setting to check is:
AIOS → Firewall → PHP Rules → WP REST API → Disallow unauthorized REST requests
The preferred fix is to allow the contact-form-7 REST namespace rather than disabling all security features.
If this does not resolve the issue, check the browser Network response and AIOS firewall logs to identify the specific rule responsible.
The successful submission after turning all security off strongly supports a security-configuration conflict, but the exact setting remains unconfirmed until it is individually tested.