jquery - Sencha Touch Ajax Request Error: Origin null is not allowed by Access-Control-Allow-Origin. -


i making ajax request remote server , sending parameters post method. getting following response:

**"mlhttprequest cannot load http://rasovai.com/mobilecontact1.php?_dc=1369189135731. origin null not allowed access-control-allow-origin.  "** 

i read error , found out because of cors, add header request follows:

 ext.ajax.defaultheaders = {                                         'accept': 'application/json',                                         'accept': 'access-control-allow-origin: *',                                         'accept': 'access-control-allow-credentials:   true',                                           'accept': 'access-control-allow-methods: options, get, post',                                         'accept': 'access-control-allow-headers: content-type, depth, user-agent, x-file-size, x-requested-with, if-modified-since, x-file-name, cache-control'                                     }; 

but still getting same error in response.

i able hit url on server, not able pass parameters.

can me in regard?

thanks ishan jain

if using chrome browser can use --disable-web-security flag allow cross domain requests , if building app work fine. have @ thread more details : how use json proxy access remote services during development


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -