Wednesday, May 27, 2015

CORS vs JSONP in Java

I’m having issues with accessing your web server.  This is a total dealbreaker. If we can’t fix this, we can’t even go forward. Nothing in the WebServiceHelper you provided deals with CORS … The way to get around CORS is to use JSONP but JSONP does not support POST AND your code does not use JSON or JSONP …. I’m assuming because all your code is inter-domain communicating, you don’t have the CORS issues. Simply put, if you use XMLHttpRequest across different domains, you must resolve Cross Origin Allow Origin issues, I am 100% certain of this. See my tests below.  

We need to implement CORS “access control” on your server.  I will need a technical resource to work through it with me. Right now, we cannot continue. We’re stuck.

Please see my reference materials.

No comments:

Post a Comment