mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Added xhrFields: { withCredentials: true } to ajaxOptions to enable
browser authentication for cross origin API requests.
This commit is contained in:
parent
1ae2cfa9a5
commit
4744de98fb
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user