Hello Kevin -
Thanks for reaching out. I am going to need some additional information from you.
I'm assuming you have developed a JavaScript application using the JQuery library ... and that you are able to use your application to POST JSON to the REST endpoint hosted by the GeoEvent Extension, running your application on your desktop, and the intended GeoEvent input receives the JSON event data. But when you run your application from the iPad you are returned some sort of HTTP error? Can you tell me what the returned error message is?
I'm not familiar with Cross-origin resource sharing (CORS). I read a little about it on the HTTP access control (CORS) page on the Mozilla Developer Network. Usually when I'm asked about a client making an HTTP POST request to GeoEvent the issue is that the server is behind some sort of firewall and the client (or external server) cannot reach the GeoEvent REST endpoint. The issue is normally that the client or external server simply cannot see the server running GeoEvent, not a cross-domain restriction on specific resources.
I spoke with one of the developers who suggested to me that CORS is enforced by the browser, on the client, to prevent malicious code from being downloaded to the client. I don't think GeoEvent Extension particularly cares who or what is posting to its input's REST endpoint. The input's transport delivers a payload to the adapter, and if the adapter can interpret the received JSON it proceeds to create a GeoEvent.
Using a Firefox browser, I used the poster-extension to make an OPTIONS request on the administrative endpoint for my GeoEvent input. I was returned an HTTP 200 / OK message that the operations POST, GET, DELETE, PUT, OPTIONS, and HEAD were all allowed.
The person I'd like to review this with is unavailable until August 17th. I don't have any examples on enabling CORS for GeoEvent. I'll see what I can do to have someone look into JQuery POST requests and get back with you.
Best Regards -
RJ