Add to cart does nto work for anonymous users in WooCommerce

I have a couple of Wordpress sites on bedrock with WooCommerce and adding to cart does not work with anonymous users. I’ve tried disabling all other plugins and switching to a core theme, among other things but nothing works. It works in my local environment so I think it’s something to do with the environment. One site uses Redis and one does not so that doesn’t seem to be the issue either. Any ideas?