By default, CoCart cannot be found in WordPress REST API index under namespaces or routes.
We developed our own security plugin designed specifically for the REST API to provide a firewall from bad requests and protection for data exposed without authentication such as the index listing the routes available.List of Features
- Hides all sensitive details from the
wp-json
index. - Deny access to any API route if the
user-agent
is not trust worthy or a bot. - Block use of any API route in an iFrame.
- Rate limiting for any route.
- Anonymous user data returned if accessed without authentication.
- CORs support.
- Permissions callback override for any route and method.
Authentication header
If you want to change the authorization header used for authenticating users with CoCart. Use filtercocart_auth_header
to fetch the authorization value from it.