On my app, I do an httpclient request to my webserver (http://www.example.com). On Android, the request works just fine, but on mobile preview, I can't make a single request to work.
The example.com webserver already has cors enabled and I can do jquery requests to it using a page hosted on a separate server (local server on my network).
I use the Titanium 3.4.0 builtin webserver and Chrome with web-security disabled : All my POST requests are sent with the OPTIONS method and the datas are missing.
I also tried using a custom webserver (xampp on windows), but when I define a simple server in the run configurations, Titanium says that my server doesn't have a start method. When I define an external server it says it isn't an URI scheme (document root is set to c:\wampp\htdocs\myapp)
How can I correctly send requests using mobile web preview in Titanium ?