I'm working my way through the cloudindex.html example (https://github.com/clover/remote-pay-...index.html). I successfully authenticate after entering the Client ID/App ID; however, on the subsequent page I'm getting a CORS error with the request to /devices. When I re-request the devices URL manually I can see the json output with my Clover mini info.
In the Web app configuration on the sandbox site, I have my Site URL set to https://localhost:8443 and my CORS Domain set to https://localhost:8443
Here is the specific error from Chrome's console: "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:8443' is therefore not allowed access. The response had HTTP status code 401."
When I make the same request but with type OPTIONS (using curl), I get the following headers returned:
< HTTP/1.1 200 OK
< Allow: GET, OPTIONS
< Access-Control-Allow-Origin: https://localhost:8443
< Access-Control-Allow-Methods: GET, OPTIONS
< Access-Control-Allow-Headers: Content-Type, Accept, Authorization
< Content-Length: 0
< X-Frame-Options: SAMEORIGIN
The GET response for reference:
< HTTP/1.1 401 Unauthorized
< Content-Length: 30
< Content-Type: application/json; charset=utf-8
< X-Frame-Options: SAMEORIGIN