Following the guide posted on Square's Developer documentation. I can run the Node OAuth 2 sample from here: (https://github.com/square/connect-api-examples/tree/master/connect-examples/oauth/node) just fine locally with the Sandbox. But when I try to run a similar setup in a local React app, the obtainToken method from the square-connect Node library throws the following error:
Not sure how to overcome the CORS policy here. Could I get some assistance please?
Square Community