Title: Forbidden request to API
Last modified: December 1, 2020

---

# Forbidden request to API

 *  [MH](https://wordpress.org/support/users/martincmelik/)
 * (@martincmelik)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/forbidden-request-to-api/)
 * Hi,
 * I use the latest version of WP statistics and just added the WP Optimize plugin.
   Not sure if the behavior was the same before, but now Developer Tools are showing
   me error 403 when users try to access /wp-json/wp-statistics/v2/hit?… during 
   page load. Nevertheless the whole path is excluded from caching “/wp-json/wp-
   statistics/v2/*”.
 * I have enabled cache settings in WP-Stats and regenerated permalinks, but it’s
   still the same.
    I’m normally blocking WP REST API access using WordFence, but
   even when I disabled it I’m still getting 403.
 * Any idea?
 * Thanks a lot in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fforbidden-request-to-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Forbidden request to API’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [MH](https://wordpress.org/support/users/martincmelik/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/forbidden-request-to-api/)
 * Status: not resolved