iphone - Error: SyntaxError: DOM Exception 12 setRequestHeader@[native code] -


i in process of developing mobile application android , ios, phonegap , angularjs, cors_rest. have working headers on android. when testing on iphone gapdebug.

here example of authentication code:

$http.post('someurlhere', {username: username, password: password})                         .then(function (response) {                             if(!response.isauthenticated) {                             alertsmanager.addalert('username or password incorrect', 'alert-danger');                         }            callback(response);                          console.log(response);         }); 

i getting error:

syntaxerror: dom exception 12_img

if please appreciate it.

thank you:

please, check headers params, ios9 not accept parameters in http headers has space @ beginning of value. example:

"token":" token12345" => wrong
"token":"token12345" => correct

i hope helps you.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -