Added xhrFields: { withCredentials: true } to ajaxOptions to enable

browser authentication for cross origin API requests.
This commit is contained in:
Richard 2015-09-21 16:59:47 +02:00
parent 1ae2cfa9a5
commit 4744de98fb

View File

@ -530,6 +530,7 @@
var data = content.length ? content : body;
var ajaxOptions = {
url: (url.indexOf('http')!=0?endpoint:'') + url,
xhrFields: { withCredentials: true },
type: method,
data: data,
headers: headers,