I am getting the following error:
Access to fetch at 'https://token-sandbox.dev.clover.com/v1/tokens' from origin 'https://checkout.sandbox.dev.clover.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have instantiated Clover with the public key of the e-commerce API token.
I am using a test merchant.
The first time I tried using the createToken() I got back a token.
But after that even having the same code gives the above-stated error.
I have checked that my code is same as the codepen by Gareth DSouza and I still get the error.
I have also noticed similar issue happening in 2024 for manyothers as well.
I am on a tight deadline, so I would really appreciate a quick response