Getting product data from productHandle.json

Hey,
I’m running into a 401 Unauthorized error when my app tries to hit:
https://${Shopify.shop}/products/${prodHandle}.json
I get that a password-protected store should return 401, but if I open the store via the “View Online Store” button in Shopify admin (after getting collaborator access), shouldn’t it work?
I’ve asked about this before but haven’t gotten much clarity, so I tried changing the URL to:
/products/${prodHandle}.json
Still curious for the right approach. Any thoughts?

Hi - could you test this on a store that has no password to rule out if it’s caused by the password?

1 Like

@Liam-Shopify Yes, I have checked it for various stores without a password, and it is working fine. I have also noticed that when app users start removing the password from the store, the issue disappears.