If you’re encountering connection issues with third-party applications while using the WP Ghost plugin, it could be due to changes in REST API paths, restrictions on headers, or modifications to custom AJAX paths. Follow these steps to diagnose and resolve the issue:

Check Security Headers Restrictions

If the problem seems related to security headers, adjust your settings to ensure they aren’t blocking legitimate requests:

  1. Go to WP Ghost > Firewall > Header Security.
  2. Switch off the Add Security Headers for XSS and Code Injection Attacks option.
    Read more: Header Security
Verify REST API Path Settings

If the issue involves the REST API, ensure the custom path is correctly configured:

  1. Go to WP Ghost > Change Paths > API Security.
  2. Add a simple custom path like “api” instead of more complex names.
  3. Switch off Disable REST API access unless absolutely necessary.
Inspect Custom AJAX Path Settings

In rare cases, the problem may be related to the custom Ajax path.

  1. Go to WP Ghost > Change Paths > Ajax Security.
  2. Revert Ajax to default path such as admin-ajax.php.
  3. Switch off the option Hide wp-admin from Ajax path.
Whitelist Third-Party IPs and Paths

If you know the IP address or specific path used by the third-party app, whitelist it to allow seamless access:

  1. Go to WP Ghost > Firewall > Whitelist.
  2. Add the required IP addresses or paths and save the changes.
Steps to Implement and Test
  1. Make the necessary adjustments according to the suspected issue.
  2. Clear your website cache to ensure changes are applied.
  3. Test the third-party app to verify if the connection issue is resolved.

Following these steps, you can identify and address the root cause of connection issues, ensuring compatibility between third-party applications and the WP Ghost plugin.