Hi @yabdali
Thanks for sharing further details.
You mentioned that you have checked your Nginx configuration and it seems to be correct. However, the issue might be related to how the REST API requests are being rewritten by your server. This is why you’re getting a 404 error when trying to access the /wc/store/v1/cart?_locale=user endpoint without the /wp-json prefix.
I understand that you’ve found the /wc/store/v1/cart endpoint hardcoded in many places within the WooCommerce plugin. However, this is expected as it’s a standard WooCommerce REST API endpoint.
Given that this issue started recently and your server configuration hasn’t changed, it might be related to a recent update of the WooCommerce plugin. I would recommend you to rollback to a previous version of WooCommerce to see if the issue persists.
If rolling back doesn’t resolve the issue, it would be helpful to check the server logs for any errors related to the /wc/store/v1/cart endpoint. This might provide more insight into what’s causing the 404 error.
Additionally, you can create a bug report in our GitHub repo, where our developer can check it and provide further insights. You can also ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.
I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight/information.