LinkedIn WordPress Skill Quiz Answers

The REST API provides public data, which is accessible to any client anonymously, as well as private data available only after authentication. How could you ensure that no one can anonymously access site data via the REST API?

Latest Update on 23rd January, 2022 by Certification Course Answers

The REST API provides public data, which is accessible to any client anonymously, as well as private data available only after authentication. How could you ensure that no one can anonymously access site data via the REST API?

  1. Disable the REST API via the site’s wp-config.php file.
  2. Use the rest_authentication_errors() filter along with the is_user_logged_in() conditional to limit access to logged in users.
  3. Use the rest_authentication_errors() filter along with cookie authentication to limit access to logged in users.
  4. Use the Disable REST API plugin.

Correct Answer:

  • Use the Disable REST API plugin.

Latest Updates

No posts found in this category.