changed api call
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
d7cb90a778
commit
84a7e3ec7b
|
@ -40,6 +40,12 @@ define(["jquery", "utils"], function ($, utils) {
|
||||||
"api",
|
"api",
|
||||||
utils.encode_uri_components(path),
|
utils.encode_uri_components(path),
|
||||||
);
|
);
|
||||||
|
var token = window.jhdata.xsrf_token
|
||||||
|
if (token) {
|
||||||
|
// add xsrf token to url parameter
|
||||||
|
var sep = url.indexOf("?") === -1 ? "?" : "&";
|
||||||
|
url = url + sep + "_xsrf=" + token;
|
||||||
|
}
|
||||||
$.ajax(url, options);
|
$.ajax(url, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue