Access to REST API requests is restricted by Solid Security
-
Site Health in wordpress is reporting the following errors:
When testing the REST API, an error was encountered:
REST API Endpoint: https://mysite.co.uk/wp-json/wp/v2/types/post?context=edit
REST API Response: (http_request_failed) cURL error 28: Connection timed out after 10001 millisecondsWhen I visit the page, I see the following message:
{“code”:”itsec_rest_api_access_restricted”,”message”:”You do not have sufficient permission to access this endpoint. Access to REST API requests is restricted by Solid Security settings.”,”data”:{“status”:401}}
If I change the API access in Solid Security from ‘Restricted’ to ‘Default’ I receive a different message as follows:
{“code”:”rest_forbidden_context”,”message”:”Sorry, you are not allowed to edit posts in this post type.”,”data”:{“status”:401}}
Site Health still reports the same errors:
When testing the REST API, an error was encountered:
REST API Endpoint: https://mysite.co.uk/wp-json/wp/v2/types/post?context=edit
REST API Response: (http_request_failed) cURL error 28: Connection timed out after 10001 millisecondsSite Health is also reporting that the following scheduled event is late:
The scheduled event, itsec_cron, is late to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.
I am logged in as an admin…Increased PHP memory limit to 512M, cleared caches and reset permalinks, but the errors still show in Site Health ??
Server: Linux 3.10.0-1160.53.1.el7.x86_64 x86_64
Web server: Apache
PHP version: 8.0.30
PHP SAPI: fpm-fcgi
cURL version: 7.29.0 NSS/3.53.1What could be causing these errors? Do I need to change a value in Solid Security or increase a timeout value somewhere? Any help appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Access to REST API requests is restricted by Solid Security’ is closed to new replies.