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

Mobile Web App With .htaccess File & Access-Control

$
0
0

I am currently hosting a mobile web app on a server running Linux/Apache. I added this .htaccess file:

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
But when I try to use any createHTTPClient either on the same server (in the same folder) or outside the server I get a connection error (0). Is there anything else I need to setup on my server to allow these httpRequests to operate correctly?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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