Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

POST requests sent as OPTIONS and datas wiped

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>