I am trying to use ajax from another server to request for data from my server as a webservice. It returns a valid json generated by json_encode
{"reference":"","mobile":"","document":"","appointment":""}
To make it avoid the 'Access Control Allow Origin issue, I have used the dataType as 'jsonp'. However, whenever I do that, I will receive a Parse Error which I can't seem to solve (even though I have tried to copy some other valid json from other people too.
Anyone have any idea how can I resolve this?