I’ve been working on this a bit more and the issue with access to the rest api is a plugin I have installed that I forgot about (sorry!). It restricts unauthenticated access to the api.
I can specify which endpoints can have unrestricted access, can you please provide a list of all those specific endpoints I need to exclude. At the moment I have whitelisted everything under:
/judgeme/v1
And individually:
/wc/v1/products
/wc/v1/products/(?P<id>[\d]+)
/wc/v1/products/batch
/wc/v2/products/attributes/(?P<attribute_id>[\d]+)/terms
/wc/v1/products
/wc/v2/products/attributes/(?P<attribute_id>[\d]+)/terms/(?P<id>[\d]+)
/wc/v2/products/attributes/(?P<attribute_id>[\d]+)/terms/batch
/wc/v2/products/attributes
/wc/v2/products/attributes/(?P<id>[\d]+)
/wc/v2/products/attributes/batch
/wc/v2/products/categories
/wc/v2/products/categories/(?P<id>[\d]+)
/wc/v2/products/categories/batch
/wc/v2/products/(?P<product_id>[\d]+)/reviews
/wc/v2/products/(?P<product_id>[\d]+)/reviews/(?P<id>[\d]+)
/wc/v2/products/(?P<product_id>[\d]+)/reviews/batch
/wc/v3/products/attributes/(?P<attribute_id>[\d]+)/terms
/wc/v3/products/attributes/(?P<attribute_id>[\d]+)/terms/(?P<id>[\d]+)
/wc/v3/products/attributes/(?P<attribute_id>[\d]+)/terms/batch
/wc/v3/products/attributes
/wc/v3/products/attributes/(?P<id>[\d]+)
/wc/v3/products/attributes/batch
/wc/v3/products/categories
/wc/v3/products/categories/(?P<id>[\d]+)
/wc/v3/products/categories/batch
/wc/v3/products/reviews
/wc/v3/products/reviews/(?P<id>[\d]+)
/wc/v3/products/reviews/batch
Can you let me know if I am missing any. This seems to have resolved the access to the shop issue as I can see my products in the Judge.Me website.
The reviews are still not showing, and I am loosing sales because of it as I can see in the Google search console people searching for reviews. I do have one review showing in the carousel, but a new review that was added is not showing. Also, both reviews were from customers, and with the same email so they should have the verified badge but do not.
Also, is there an option to add a JWT token to your plugin so it has authenticated access to the rest apis?
I also have a blank Advanced and FAQ page in my Judge,Me screen, so if the option to set the above is in there, I can’t see it.
Thanks for your help.
-
This reply was modified 3 years, 7 months ago by guytz72.
-
This reply was modified 3 years, 7 months ago by guytz72.
-
This reply was modified 3 years, 7 months ago by guytz72.