Hello @zoddshop63 ,
The servers of SiteGround, the server setup also uses Nginx and the Rest API Connections work perfectly fine.
Try: Disabling all of the other plugins in your site. Then re-enable the SG Optimizer plugin only. If the error is gone, then re-enable the plugins one by one, testing the Optimizer after each re-enabled plugin.
You may want to also try to temporarily switch to one of the default WordPress Themes while testing. Some theme specific entries in the functions.php file may also block the requests.
You can also check your console for any errors that could indicate the exact reason for the API to not function properly.
In a test WordPress installation, try installing our plugin alone. See if it would work there.
Regards,
Plamen Martinov
Tech Support Team
SiteGround.com
I tried it on 2 fresh installs of wordpress core on 2 separate dedicated servers running ubuntu 22 php-fpm 8.1 and wordpress core alone. Its definitely a problem with siteground optimizer.
Hello @zoddshop63,
We asked our developers for further assistance on the matter based on your feedback. Unfortunately, they cannot recreate the issue using different testing environments using core WordPress application with default theme and only our SiteGround Optimizer plugin. I strongly recommend taking a deeper look into the configuration and settings of your local environments for any form of restriction or limitation that could prevent connection to the WordPress API.
Best Regards,
Simeon Boev