I was recently trying to integrate commerce to an existing sxa website. One of the issues I got that commerce component related APIs were giving 404 not found. For example, I added "Promoted Products" component to homepage. It seemed fine on experience editor but when I published and tried to see on website, I saw an error message on browser's console. I checked the catalog configuration first, everything seemed fine. Then, I compared with storefront website. I noticed that RequestVerificationToken was missing on my website. I searched a bit and found Sitecore official documentation related with it. According to documentation, I saw that Antiforgery rendering was missing and it was coming from Commerce Metadata partial design. I added Commerce Metadata partial design to my website's page design and the issue got fixed. After you add metadata and publish, you shoud see RequestVerificationToken on page.
All about software, mostly .Net and Sitecore. My aim here is going to be learning, implementing and discussing different topics.