PaulKish
21 Jul 2012, 12:27 PM
I have been able to implement CORS request in my touch application, I have also configured the server appropriately, this set-up works on my test environment on Chrome 20.0.1132.57 m, however it seems not to work on android webkit browser 2.3.x though according to this (http://caniuse.com/cors) it should work. My config for the ajax request is
Ext.Ajax.request({
url: 'http://url/',
form: 'formid',
withCredentials: false,
useDefaultXhrHeader: false,
my .htaccess file looks like this
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Credentials "false"
Header set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Alternatively if i would like to know how to submit a form via jsonp. Thanks in advance
Ext.Ajax.request({
url: 'http://url/',
form: 'formid',
withCredentials: false,
useDefaultXhrHeader: false,
my .htaccess file looks like this
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Credentials "false"
Header set Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT"
Header set Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Alternatively if i would like to know how to submit a form via jsonp. Thanks in advance