Brian Borman • almost 12 years ago
I was trying to use the MintChip hosted services and ran into an issue with making my requests and interpreting the response. I was just getting started and testing out a call to Get Chip Info, but have an issue.
The request has to be from the client because of the certificate (correct?). I can't make a generic AJAX request due to cross-domain issues so I use JSONP. But the response is just JSON and so I get an error when parsing the JSON in Chrome (Uncaught SyntaxError: Unexpected token : ). I am assuming this error is being caused by the difference between JSONP and JSON. Can anyone tell me how the requests are expected to be made? Perhaps by placing sample Request and Response headers in the examples?
Comments are closed.