So I have a site where I have access codes for 1-time downloads, and I have EVERYTHING working with coding, except that it works FINE in preview mode, but it does NOT work on the actual website. I am using the Secrets manager for my codes. I started with the blank template, and every time I click a button on the site with Inspect open, the developer console errors this:
Can i have some help please?