Title: wp-json access problem 403
Last modified: March 11, 2024

---

# wp-json access problem 403

 *  Resolved [andreios](https://wordpress.org/support/users/andreios/)
 * (@andreios)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/)
 * When I try to configure the plugin for the first time and click on Start listing
   products, I get a lot of 403 errors in the log about calls via wp-json. Some 
   calls go through, others don’t. It doesn’t seem to follow any particular pattern.
   But the plugin won’t finish and stays in a loop until I close the page.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17492264)
 * Hello [@andreios](https://wordpress.org/support/users/andreios/),
 * Thanks for reaching out.
 * Could you share a screenshot of the error message so that we can have a better
   visual understanding, please?
 * I recommend [https://snipboard.io](https://snipboard.io/) for sharing screenshots–
   follow the instructions on the page, then paste the URL in your reply.
 * Next, navigate to **WooCommerce > Status > Logs**, and from the dropdown on the
   right, select any logs starting with `google-listings-and-ads` from the date 
   you tried to connect, and select View.
 * Then share the logs in your reply by pasting them into another tool such as [https://pastebin.com](https://pastebin.com/)
   and share that link with us here.
 * From the same page, **WooCommerce > Status > Logs**, from the dropdown on the
   right side, please see if there are any logs starting with the words `fatal-error`
   from the same date.
 * If so, please select ‘View’ and copy and paste them into your reply here.
 * Cheers.
 *  Thread Starter [andreios](https://wordpress.org/support/users/andreios/)
 * (@andreios)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17492344)
 * <span _d-id=”23857″ class=”–l –r sentence_highlight”>There is no error message
   in the browser. Only in the browser console, see screenshot. </span><span _d-
   id=”23861″ class=”–r sentence_highlight”></span><span _d-id=”23863″ class=”–l
   sentence_highlight”>There are no log entries named google-listings-and-ads or
   fatal-errors under WooCommerce > Status > Logs.</span><span _d-id=”23864″ class
   =”–r sentence_highlight”></span><span _d-id=”23866″ class=”–l sentence_highlight”
   >I only have these log entries in the server log.</span>
 * [https://snipboard.io/2UjHEV.jpg](https://snipboard.io/2UjHEV.jpg)
   [https://pastebin.com/Xn5KKxC8](https://pastebin.com/Xn5KKxC8)
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17492380)
 * Hi [@andreios](https://wordpress.org/support/users/andreios/),
 * From the logs you’ve shared, it appears that your website is returning a 403 
   error when trying to access certain WooCommerce REST API endpoints.
 * The 403 error you’re encountering typically indicates a permissions issue. It’s
   possible that your server is blocking the wp-json requests, which the Google 
   Listings & Ads plugin needs to function correctly.
 * Here are a few steps you can take to resolve this issue:
    - Check your server’s .htaccess file for any rules that might be blocking access
      to the wp-json API. If you are unsure how to do this, you may need to contact
      your hosting provider for assistance.
    - Try disabling any security plugins temporarily to see if they might be causing
      the issue. If the issue is resolved, you can re-enable them one by one to 
      identify the culprit.
    - Check for conflicting plugins. Deactivate all other plugins except WooCommerce
      and Google Listings & Ads to see if the issue persists. If it resolves, reactivate
      each plugin one by one to identify the conflicting plugin.
 * If none of the above steps helps, it might be helpful to enable WordPress debugging
   and see if that provides any additional insight into the problem. More info: 
   [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
 * Let us know how that goes. Looking forward to helping you.
 *  Thread Starter [andreios](https://wordpress.org/support/users/andreios/)
 * (@andreios)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17492411)
 * Its 403, yes.
   I use nginx as webserver where .htaccess is not read.When I call
   one of these faulty addresses in the browser I don’t get a 403 error but a 401
   error.I have already activated wp debug but no error messages appeared there.
   I also tried to disable all plugins but no change.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17492444)
 * Hi [@andreios](https://wordpress.org/support/users/andreios/),
 * Yes, since you’re using Nginx, the .htaccess file won’t be applicable. However,
   the 401 error you’re seeing typically indicates an authentication problem.
 * Here are a few things you can check:
    1. Verify if your REST API is accessible by navigating to yourdomain.com/wp-json/.
       If you can’t access it, it might be a problem with your server configuration.
    2. Check if Basic Authentication is enabled on your server. The WooCommerce REST
       API uses Basic Auth, which could be causing the 401 error if it’s not enabled.
 * It might be best to contact your hosting provider or a developer familiar with
   Nginx and WooCommerce for further assistance.
 * Here I found some resources via Google search might helps too:
    - [https://stackoverflow.com/questions/60141471/nginx-403-forbidden-error-for-wordpress-main-page](https://stackoverflow.com/questions/60141471/nginx-403-forbidden-error-for-wordpress-main-page)
    - [https://wordpress.org/support/topic/health-check-rest-api-encountered-an-unexpected-result-403-forbidden/](https://wordpress.org/support/topic/health-check-rest-api-encountered-an-unexpected-result-403-forbidden/)
    - [https://stackoverflow.com/questions/34982462/nginx-config-issue-getting-403-forbidden](https://stackoverflow.com/questions/34982462/nginx-config-issue-getting-403-forbidden)
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get the job done.
 *  Thread Starter [andreios](https://wordpress.org/support/users/andreios/)
 * (@andreios)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17493248)
 * I had to realize that I have access with another browser and everything works
   normally. It was the Firefox browser, I can only assume that an add-on caused
   it, although it doesn’t look like I have anything blocking installed. Crazy thing.
   I’ve been searching most of the night for a workaround for nothing. Thanks for
   the help!
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17493276)
 * That’s great to hear! Thanks for letting us know it was a browser issue after
   all, [@andreios](https://wordpress.org/support/users/andreios/). We’re happy 
   to help, so please feel free to reach out to us again if you have any other questions.
 * Have a great one!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘wp-json access problem 403’ is closed to new replies.

 * ![](https://ps.w.org/google-listings-and-ads/assets/icon.svg?rev=2775988)
 * [Google for WooCommerce](https://wordpress.org/plugins/google-listings-and-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-listings-and-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-listings-and-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/google-listings-and-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-listings-and-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-listings-and-ads/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/wp-json-access-problem-403/#post-17493276)
 * Status: resolved