For the sandbox setup I have:
App Web Configuration
Site URL:
http://localhost:8080/register
CORS Domain (optional):
http://localhost:8080/
Default OAuth Response: CODE
Making the request:
fetch('
https://sandbox.dev.clover.com/oauth/token?client_id=
MyAppId&client_secret=
MyAppSecret&code=
MerchantCode')
Response:
"400 (Bad Request)"
"Access to XMLHttpRequest at '
https://sandbox.dev.clover.com/oauth/token?client_id=
MyAppId&client_secret=
MyAppSecret&code=
MerchantCode' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"