jquery - Authorization Header not set for cross domain request -
I have read different posts but could not locate the solution. I am calling this URL and there is a code in test.html
$ Ajax ({type: "GET", url: "http://anothersite.com/app_dev.php/rest/ 123", CrossDamain: true, async: false, beforeSend: function (xhr) {Warning ('Befor Sent' ); Var text = btoa ("11" + ":" + "22"); warning ("ank:";), success: function () {} (for example, "error": "+ error"); Warning ('Thank you for your comment!');} });
I get a 401 error and when I check the header, then an authority header
The problem occurs when code runs on the browser. I tried this for phonegap and it works perfectly.
Comments
Post a Comment